From 9d18e239f4182abc17016a9ad0947967b51909a2 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Mon, 1 Apr 2024 15:30:03 -0700 Subject: [PATCH] tpl/tplimpl: Optionally exclude content from sitemap Define global inclusion/exclusion in site configuration, and override via front matter. For example, to exclude a page from the sitemap: [sitemap] disable = true # default is false Closes #653 Closes #12282 Co-authored-by: kolappannathan Co-authored-by: felicianotech --- data/docs.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/docs.yaml b/data/docs.yaml index f9b5731f2..b522ffbef 100644 --- a/data/docs.yaml +++ b/data/docs.yaml @@ -1649,6 +1649,7 @@ config: disableInlineCSS: false sitemap: changeFreq: "" + disable: false filename: sitemap.xml priority: -1 social: null @@ -2797,8 +2798,8 @@ tpl: {{ $m.Set "Hugo" "Rocks!" }} {{ $m.Values | debug.Dump | safeHTML }} - |- - map[string]interface {}{ - "Hugo": "Rocks!", + { + "Hugo": "Rocks!" } TestDeprecationErr: Aliases: null