Default changed.html to page's Lastmod

This commit is contained in:
Will Faught
2023-09-23 15:50:39 -07:00
parent 3ebb2b7fc4
commit 4c88276bd0

View File

@@ -1,8 +1,14 @@
{{ $page := . }}
{{ $max := "" }}
{{ range $page.RegularPages }}
{{ if or (not $max) (lt $max .PublishDate) }}
{{ $max = .PublishDate }}
{{ if or (not $max) (lt $max .Lastmod) }}
{{ $max = .Lastmod }}
{{ end }}
{{ end }}
{{ if not $max }}
{{ $max = $page.Lastmod }}
{{ end }}
{{ return $max }}