From abcab1b57d6bc3e6e44ff4d143f33bee8cc15a4d Mon Sep 17 00:00:00 2001 From: tdro Date: Tue, 6 Dec 2022 22:13:01 -0500 Subject: themes/default/layouts/_default/sitemap.xml: Add schema and transform Validate with schema. Switch to xml-data identifier attribute and adjust file name-spacing in configuration --- config.toml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'config.toml') diff --git a/config.toml b/config.toml index e8e9778..ce885d1 100644 --- a/config.toml +++ b/config.toml @@ -146,10 +146,14 @@ enableRobotsTXT = true baseName = "rss" mediaType = "application/rss+xml" - [outputFormats.xslt] + [outputFormats."xslt.rss"] baseName = "rss" mediaType = "application/xslt+xml" + [outputFormats."xslt.sitemap"] + baseName = "sitemap" + mediaType = "application/xslt+xml" + [outputFormats.authors] path = "authors" baseName = "index" @@ -179,7 +183,7 @@ enableRobotsTXT = true mediaType = "application/manifest+json" [outputs] - home = ["html", "rss", "xslt", "json", "authors", "sources", "browserconfig", "history", "records", "webmanifest"] + home = ["html", "rss", "xslt.rss", "xslt.sitemap", "json", "authors", "sources", "browserconfig", "history", "records", "webmanifest"] section = ["html", "rss"] taxonomy = ["html", "rss"] term = ["html", "rss"] @@ -264,3 +268,8 @@ enableRobotsTXT = true [[module.mounts]] source = "public" target = "assets/public" + +[sitemap] + changefreq = "weekly" + filename = "sitemap.xml" + priority = 0.5 -- cgit v1.2.3