diff --git a/layouts/_default/sitemap.xml b/layouts/_default/sitemap.xml index f5abe258..5bec19a7 100644 --- a/layouts/_default/sitemap.xml +++ b/layouts/_default/sitemap.xml @@ -2,7 +2,7 @@ {{ range .Data.Pages }} - {{- if .Permalink -}} + {{- if and .Permalink (ne .Params.offTheRecord true) -}} {{ .Permalink }}{{ if not .Lastmod.IsZero }} {{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }}