From c3a7039b35dd8a4c7dce26a5642e7cad5f13fa6b Mon Sep 17 00:00:00 2001 From: Junyi Hou Date: Fri, 3 May 2024 01:30:14 +0800 Subject: [PATCH] fix the sitemap url --- layouts/_default/sitemap.xml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/layouts/_default/sitemap.xml b/layouts/_default/sitemap.xml index 7d4284f..1db96c2 100644 --- a/layouts/_default/sitemap.xml +++ b/layouts/_default/sitemap.xml @@ -2,23 +2,23 @@ {{ range where .Data.Pages "Params.hidden" "!=" true }} - {{- if .RelPermalink -}} - - {{ .RelPermalink }}{{ if not .Lastmod.IsZero }} - {{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }} - {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} - {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range .Translations }} - {{ end }} - {{ end }} - + {{- if .Permalink -}} + + {{ .Permalink }}{{ if not .Lastmod.IsZero }} + {{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}{{ end }}{{ with .Sitemap.ChangeFreq }} + {{ . }}{{ end }}{{ if ge .Sitemap.Priority 0.0 }} + {{ .Sitemap.Priority }}{{ end }}{{ if .IsTranslated }}{{ range .Translations }} + {{ end }} + {{ end }} + {{- end -}} {{ end }}