hugo-theme-hello-friend/layouts/partials/lastmod.html
2019-12-17 11:20:41 +07:00

9 lines
No EOL
281 B
HTML

{{$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 }}