fix(article/footer): display last updated time only when it's different to article publish time

This commit is contained in:
Jimmy Cai 2020-09-06 20:33:23 +02:00
parent 0cac2218e3
commit d2cc93d5c7
No known key found for this signature in database
GPG key ID: 3EA408E527F37B18

View file

@ -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>