From 25c4af27da28a79f0edbdb26ba262ed2d7e81cf0 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 28 May 2022 18:16:58 +0530 Subject: [PATCH] Clone the default template --- layouts/_default/sitemap.xml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/layouts/_default/sitemap.xml b/layouts/_default/sitemap.xml index 9f6c6ae1..f5abe258 100644 --- a/layouts/_default/sitemap.xml +++ b/layouts/_default/sitemap.xml @@ -1,10 +1,8 @@ - - - -{{ printf "" | safeHTML }} +{{ printf "" | safeHTML }} - {{ range .Data.Pages }}{{ if ne .Params.offTheRecord true }} + {{ range .Data.Pages }} + {{- if .Permalink -}} {{ .Permalink }}{{ if not .Lastmod.IsZero }} {{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }} @@ -12,14 +10,15 @@ {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range .Translations }} {{ end }} {{ end }} - {{ end }}{{ end }} + {{- end -}} + {{ end }} \ No newline at end of file