blog/static/themes/hello-friend/layouts/partials/lastmod.html

11 lines
289 B
HTML
Raw Normal View History

2023-06-11 16:09:07 +02:00
{{ $hourInSec := 3600 }}
{{ if gt .Lastmod (add (time .Date).Unix $hourInSec) }}
{{ with .Lastmod }}
<span class="post-moddate">
({{ $.Site.Params.LastModDisplay }}
{{ .Format ($.Site.Params.DateFormatSingle | default "2006-01-02") }})
</span>
{{ end }}
{{ end }}