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
1 changed files with 2 additions and 3 deletions

View File

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