Fix the modified date check for git

This commit is contained in:
BBaoVanC 2021-11-02 00:53:01 -05:00
parent 3f98073aea
commit 8af0ad6d16
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A

View File

@ -8,7 +8,12 @@
</time>
</span>
{{ if not .Site.Params.repoURL }}
{{ $gitinfo := false }}
{{ with .GitInfo }}
{{ $gitinfo = true }}
{{ end }}
{{ if not $gitinfo }}
{{ if ne .Lastmod .Date }}
<span class="post-meta-item">
{{ partial "icon.html" "pencil" }}