diff options
| -rw-r--r-- | gospeladlershof.de/layouts/sitemap.xml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gospeladlershof.de/layouts/sitemap.xml b/gospeladlershof.de/layouts/sitemap.xml index 05d8523..7074866 100644 --- a/gospeladlershof.de/layouts/sitemap.xml +++ b/gospeladlershof.de/layouts/sitemap.xml @@ -3,7 +3,12 @@ {{if eq .Params.noindex 1 | not}} <url> <loc>{{ .Permalink }}</loc> - <lastmod>{{ safeHTML ( .Date.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ with .Sitemap.ChangeFreq }} + {{ if eq .Lastmod.Unix -62135596800}} + <lastmod>{{ safeHTML ( now | dateFormat "2006-01-02T15:04:05-07:00" ) }}</lastmod> + {{else}} + <lastmod>{{ safeHTML ( .Lastmod | dateFormat "2006-01-02T15:04:05-07:00" ) }}</lastmod> + {{end}} + {{ with .Sitemap.ChangeFreq }} <changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }} <priority>{{ .Sitemap.Priority }}</priority>{{ end }} </url> |
