[FIX] failed build on some newer hugo versions #55

Merged
jtbx merged 1 commit from fix/hugo-build into main 2024-03-12 21:32:11 +01:00
Showing only changes of commit 462fb7ed68 - Show all commits

[FIX] failed build on some newer hugo versions
All checks were successful
/ build (pull_request) Successful in 40s
/ cleanup-staging (pull_request) Successful in 2s
/ build (push) Successful in 13s

might need v0.123.0 or greater
jtbx 2024-03-12 21:20:26 +01:00

View file

@ -8,11 +8,11 @@
</section>
<div class="meta">
{{- with .Params.publishDate }}
{{- with .PublishDate }}
<small class="li-comma">Veröffentlicht: {{ .Format "2006-01-02 15:04" }}</small>
{{- end }}
{{- if .Params.lastmod.After .Params.publishDate }}
{{- with .Params.lastmod }}
{{- if .Lastmod.After .PublishDate }}
{{- with .Lastmod }}
<small class="li-comma">letzte Änderung: {{ .Format "2006-01-02 15:04" }}</small>
{{- end }}
{{- end }}