mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-22 05:00: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
|
- ENHANCEMENT
|
||||||
- display page metadata only on content type `posts`
|
- the date on updated posts will be prefixed with `Updated on` string
|
||||||
- add a small radius to feature images
|
modifications within 24 hours are inored
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<svg class="icon date"><use xlink:href="#date"></use></svg>
|
<svg class="icon date"><use xlink:href="#date"></use></svg>
|
||||||
<span class="gblog-post__tag">
|
<span class="gblog-post__tag">
|
||||||
<time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}">
|
<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
|
Updated on
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ .Lastmod.Format "Jan 2, 2006" }}
|
{{ .Lastmod.Format "Jan 2, 2006" }}
|
||||||
|
Loading…
Reference in New Issue
Block a user