hugo-theme-hello-friend/layouts/partials/lastmod.html

10 lines
283 B
HTML
Raw Permalink Normal View History

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