ignore modifications within 24 hours

This commit is contained in:
Robert Kaussow 2020-09-16 09:38:44 +02:00
parent b09bbf5fcb
commit b2f715a50c
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
2 changed files with 3 additions and 6 deletions

View File

@ -1,6 +1,3 @@
- BREAKING
- remove `geekblogAnchorLeft`;
for a better spacing left-side anchors were removed
- ENHANCEMENT
- display page metadata only on content type `posts`
- add a small radius to feature images
- the date on updated posts will be prefixed with `Updated on` string
modifications within 24 hours are inored

View File

@ -25,7 +25,7 @@
<svg class="icon date"><use xlink:href="#date"></use></svg>
<span class="gblog-post__tag">
<time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
{{ if ne (.Lastmod.Format "2006-01-02") (.Date.Format "2006-01-02") }}
{{ if .Lastmod.After (.Date.AddDate 0 0 1) }}
Updated on
{{ end }}
{{ .Lastmod.Format "Jan 2, 2006" }}