mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-11-24 08:45:07 +01:00
11 lines
289 B
HTML
11 lines
289 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 }}
|