mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-27 04:03:48 +01:00
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
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
|||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{- if not .Lastmod.IsZero -}}
|
||||
{{- if ne .Lastmod .Date -}}
|
||||
<section class="article-time">
|
||||
{{ (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>
|
||||
|
|
Loading…
Reference in a new issue