summaryrefslogtreecommitdiffstats
path: root/layouts/_default
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-06-29 08:48:10 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-06-29 08:48:10 +0200
commite2a137accbce2f38f34646edfd289fd06478eae1 (patch)
treef78626c8df80c88a3f9ba9cc17290a4c34e146ee /layouts/_default
parentde51f2763939553fdefe87ed18040f87f588176c (diff)
downloadgohugo-theme-ed-e2a137accbce2f38f34646edfd289fd06478eae1.tar.gz
Fix date format for sitemap
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/sitemap.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/sitemap.xml b/layouts/_default/sitemap.xml
index 7b36746..3cba759 100644
--- a/layouts/_default/sitemap.xml
+++ b/layouts/_default/sitemap.xml
@@ -3,7 +3,7 @@
{{ range .Data.Pages }}{{ if ne .Params.private true }}
<url>
<loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
- <lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05Z07:00" | jsonify ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
+ <lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05Z07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
<changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
<priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
<xhtml:link