hugo-theme-wondermod/layouts/partials/post_lastmod.html
2022-08-23 17:02:53 +02:00

6 lines
265 B
HTML

{{ $date := .Date.Format "02.01.2006" }}
{{ $lastmod := .Lastmod.Format "02.01.2006" }}
{{- if ne $lastmod $date -}}
<span title={{ .Lastmod }}><i>Last updated on {{ .Lastmod | time.Format (default "January 2, 2006" site.Params.DateFormat) }}</i></span>
{{- end }}