mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-21 12:40:39 +00:00
ignore modifications within 24 hours
This commit is contained in:
parent
b09bbf5fcb
commit
b2f715a50c
@ -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
|
||||
|
@ -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" }}
|
||||
|
Loading…
Reference in New Issue
Block a user