]> git.maquefel.me Git - brevno-suite/hugo/commit
tpl/tplimpl: Optionally exclude content from sitemap
authorJoe Mooring <joe.mooring@veriphor.com>
Mon, 1 Apr 2024 22:30:03 +0000 (15:30 -0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 2 Apr 2024 09:21:03 +0000 (11:21 +0200)
commit6738a3e79dd545603d9851832bc3140fd184bfef
tree9faff4e6a3fed40c8c9f59df19fd296c48ad49ef
parent2f7df4b926fe20849e9030edfe9b1d94b8cadfa9
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 <kolappannathan@users.noreply.github.com>
Co-authored-by: felicianotech <FelicianoTech@gmail.com>
config/commonConfig.go
docs/data/docs.yaml
hugolib/config_test.go
hugolib/sitemap_test.go
tpl/tplimpl/embedded/templates/_default/sitemap.xml
tpl/tplimpl/tplimpl_integration_test.go