Change modified date to use an edit icon

This commit is contained in:
BBaoVanC 2021-10-10 16:20:02 -05:00
parent b923054bd3
commit c40be2bcd7
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A

View File

@ -1,7 +1,6 @@
{{ if or .GitInfo .Date (.GetTerms "tags") }}
<div class="post-metadata">
{{ if .Date }}
<span class="post-meta-item">
{{ partial "icon.html" "calendar" }}
<time datetime="{{ .Date.Format "January 2, 2006" }}" pubdate>
@ -9,8 +8,9 @@
</time>
{{ if ne .Lastmod .Date }}
{{ partial "icon.html" "edit-2" }}
<time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
(Modified {{ .Lastmod.Format "January 2, 2006" }})
{{ .Lastmod.Format "January 2, 2006" }}
</time>
{{ end }}