From f45046e4bd4933e368dc0769e0da320410846328 Mon Sep 17 00:00:00 2001 From: srgg Date: Tue, 7 Apr 2026 12:47:19 -0600 Subject: [PATCH] fix(sitemap): ensure sitemap excludes pages with frontmatter sitemap disable --- modules/blox/layouts/sitemap.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/blox/layouts/sitemap.xml b/modules/blox/layouts/sitemap.xml index 9f6074247..540f66c0d 100644 --- a/modules/blox/layouts/sitemap.xml +++ b/modules/blox/layouts/sitemap.xml @@ -2,7 +2,7 @@ {{/* Check that page is built (has a URL) and is not private. */}} - {{ range where (where .Data.Pages "Permalink" "!=" "") "Params.private" "ne" true }} + {{ range where (where (where .Data.Pages "Permalink" "!=" "") "Params.private" "ne" true) ".Sitemap.Disable" "ne" true }} {{ .Permalink }} {{- if not .Lastmod.IsZero }}{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}