diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-06-29 08:48:10 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-06-29 08:48:10 +0200 |
| commit | e2a137accbce2f38f34646edfd289fd06478eae1 (patch) | |
| tree | f78626c8df80c88a3f9ba9cc17290a4c34e146ee /layouts/_default | |
| parent | de51f2763939553fdefe87ed18040f87f588176c (diff) | |
| download | gohugo-theme-ed-e2a137accbce2f38f34646edfd289fd06478eae1.tar.gz | |
Fix date format for sitemap
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/sitemap.xml | 2 |
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 |
