Fix lastmod displaying & show even when GitInfo is enabled

This commit is contained in:
BBaoVanC 2021-11-04 14:59:15 -05:00
parent f86aa30100
commit b9879729bf
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A

View File

@ -13,8 +13,8 @@
{{ $gitinfo = true }} {{ $gitinfo = true }}
{{ end }} {{ end }}
{{ if not $gitinfo }} {{/* TODO: make this be a tooltip */}}
{{ if ne .Lastmod .Date }} {{ if ne (time.Format "2006-01-02" .Lastmod) (time.Format "2006-01-02" .Date) }}
<span class="post-meta-item"> <span class="post-meta-item">
{{ partial "icon.html" "pencil" }} {{ partial "icon.html" "pencil" }}
<time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate> <time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
@ -23,7 +23,6 @@
{{ end }} {{ end }}
</span> </span>
{{ end }} {{ end }}
{{ end }}
{{ with .Params.authors }} {{ with .Params.authors }}
<span class="post-meta-item"> <span class="post-meta-item">