feat(article): display last updated time of a post
This commit is contained in:
@@ -13,4 +13,11 @@
|
||||
<span>{{ default .Site.Params.article.license.default .Params.license }}</span>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{- if not .Lastmod.IsZero -}}
|
||||
<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>
|
||||
</section>
|
||||
{{- end -}}
|
||||
</footer>
|
||||
Reference in New Issue
Block a user