diff options
author | Joe Mooring <[email protected]> | 2024-04-01 15:30:03 -0700 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-04-02 11:21:03 +0200 |
commit | 6738a3e79dd545603d9851832bc3140fd184bfef (patch) | |
tree | 9faff4e6a3fed40c8c9f59df19fd296c48ad49ef /docs/data | |
parent | 2f7df4b926fe20849e9030edfe9b1d94b8cadfa9 (diff) | |
download | hugo-6738a3e79dd545603d9851832bc3140fd184bfef.tar.gz hugo-6738a3e79dd545603d9851832bc3140fd184bfef.zip |
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 <[email protected]>
Co-authored-by: felicianotech <[email protected]>
Diffstat (limited to 'docs/data')
-rw-r--r-- | docs/data/docs.yaml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/data/docs.yaml b/docs/data/docs.yaml index f9b5731f2..b522ffbef 100644 --- a/docs/data/docs.yaml +++ b/docs/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 |