From b6a507a3df3a8860cb72325dcff6a9afa9fde1fb Mon Sep 17 00:00:00 2001 From: Kolappan N Date: Tue, 19 Mar 2024 23:33:29 +0530 Subject: [PATCH] tpl/tplimpl: Allow content exclusion in sitemap.xml Closes #653 --- tpl/tplimpl/embedded/templates/_default/sitemap.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpl/tplimpl/embedded/templates/_default/sitemap.xml b/tpl/tplimpl/embedded/templates/_default/sitemap.xml index b1e4b2d2d..ecb9ecf60 100644 --- a/tpl/tplimpl/embedded/templates/_default/sitemap.xml +++ b/tpl/tplimpl/embedded/templates/_default/sitemap.xml @@ -1,7 +1,7 @@ {{ printf "" | safeHTML }} - {{ range .Data.Pages }} + {{ range where .Data.Pages "Params.sitemap.exclude" "ne" true }} {{- if .Permalink -}} {{ .Permalink }}{{ if not .Lastmod.IsZero }}