From 2ef85c305abd280cd40ecc4093a33368fbb63d69 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 28 May 2022 18:18:12 +0530 Subject: [PATCH] Modify just the line which can get the check done --- layouts/_default/sitemap.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}