feat(article/details): better article time display
This commit is contained in:
parent
7f3d906f24
commit
3742a0775b
@ -29,10 +29,12 @@
|
||||
</h3>
|
||||
{{ end }}
|
||||
|
||||
{{- if not .Date.IsZero -}}
|
||||
<footer class="article-time">
|
||||
{{ (resources.Get "icons/clock.svg").Content | safeHTML }}
|
||||
<time data-timeago="true" datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
|
||||
<time class="article-time--published">
|
||||
{{- .Date.Format ( or .Site.Params.dateFormat "Jan 02, 2006" ) -}}
|
||||
</time>
|
||||
</footer>
|
||||
{{- end -}}
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user