From fc07b509fe2da1e9baeb67869bc2fb3992990de4 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 23 May 2022 17:01:52 +0300 Subject: Rework alternate links, add sitemap support --- exampleSite/config.toml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'exampleSite') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 94e1200..648261e 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -7,7 +7,7 @@ theme = ['github.com/sergeyklay/gohugo-theme-ed'] resourceDir = '../resources' enableRobotsTXT = true -# kick out RSS, we'll use Atom +# kick out RSS, we'll use Atom and FEED bellow disableKinds = ['RSS'] [minify] @@ -17,7 +17,6 @@ disableKinds = ['RSS'] [outputs] home = [ 'HTML', 'Atom', 'FEED', 'JSON', 'MANIFEST', 'humanstxt' ] section = [ 'HTML', 'Atom', 'FEED', 'JSON' ] - # TODO: SITEMAP page = [ 'HTML' ] taxonomy = [ 'HTML' ] term = [ 'HTML' ] @@ -87,6 +86,7 @@ disableKinds = ['RSS'] isHTML = false noUgly = true permalinkable = false + notAlternative = true [mediaTypes] [mediaTypes.'text/xml'] @@ -96,6 +96,12 @@ disableKinds = ['RSS'] [mediaTypes.'application/manifest+json'] suffixes = ['webmanifest'] +# Sitemap config +[sitemap] + changefreq = 'weekly' + filename = 'sitemap.xml' + priority = 0.5 + [author] name = 'John Doe' email = 'john@example.com' -- cgit v1.2.3