]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
tpl/tplimpl: Remove deprecated method from sitemapindex.xml
authorJoe Mooring <joe.mooring@veriphor.com>
Thu, 14 Mar 2024 17:11:43 +0000 (10:11 -0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 14 Mar 2024 20:03:19 +0000 (21:03 +0100)
tpl/tplimpl/embedded/templates/_default/sitemapindex.xml

index 01cf65bc5989b92461523c222198dc84744b8775..d6eec055dbdfc8ec215042c04f89cc9cd82a2920 100644 (file)
@@ -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 }}