fix(article/footer): display last updated time only when it's different to article publish time
This commit is contained in:
parent
0cac2218e3
commit
d2cc93d5c7
@ -14,7 +14,7 @@
|
|||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{- if not .Lastmod.IsZero -}}
|
{{- if ne .Lastmod .Date -}}
|
||||||
<section class="article-time">
|
<section class="article-time">
|
||||||
{{ (resources.Get "icons/clock.svg").Content | safeHTML }}
|
{{ (resources.Get "icons/clock.svg").Content | safeHTML }}
|
||||||
<span class="article-time--modified">Last updated on {{ .Lastmod.Format ( or .Site.Params.dateFormat "Jan 02, 2006 15:04 MST" ) }}</span>
|
<span class="article-time--modified">Last updated on {{ .Lastmod.Format ( or .Site.Params.dateFormat "Jan 02, 2006 15:04 MST" ) }}</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user