aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJoe Mooring <[email protected]>2024-03-14 10:11:43 -0700
committerBjørn Erik Pedersen <[email protected]>2024-03-14 21:03:19 +0100
commitf038a51b3e448286287b56bed6dd76e9b00138d5 (patch)
treeb7497448867637fe0f1308b2cde6d9d245263a9f
parentb4bff6190cc035d301947d6952f628c7447aaf12 (diff)
downloadhugo-f038a51b3e448286287b56bed6dd76e9b00138d5.tar.gz
hugo-f038a51b3e448286287b56bed6dd76e9b00138d5.zip
tpl/tplimpl: Remove deprecated method from sitemapindex.xml
-rw-r--r--tpl/tplimpl/embedded/templates/_default/sitemapindex.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/tplimpl/embedded/templates/_default/sitemapindex.xml b/tpl/tplimpl/embedded/templates/_default/sitemapindex.xml
index 01cf65bc5..d6eec055d 100644
--- a/tpl/tplimpl/embedded/templates/_default/sitemapindex.xml
+++ b/tpl/tplimpl/embedded/templates/_default/sitemapindex.xml
@@ -3,8 +3,8 @@
{{ range . }}
<sitemap>
<loc>{{ .SitemapAbsURL }}</loc>
- {{ if not .LastChange.IsZero }}
- <lastmod>{{ .LastChange.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</lastmod>
+ {{ if not .Lastmod.IsZero }}
+ <lastmod>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</lastmod>
{{ end }}
</sitemap>
{{ end }}