Don't show modified date if git commit is shown

It's redundant
This commit is contained in:
BBaoVanC 2021-10-10 19:03:15 -05:00
parent 476519c022
commit ddbcaa6d56
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
2 changed files with 9 additions and 4 deletions

View File

@ -18,7 +18,7 @@
}
.post-meta-item {
margin-right: 5px;
margin-right: 10px;
white-space: nowrap;
}

View File

@ -6,16 +6,19 @@
<time datetime="{{ .Date.Format "January 2, 2006" }}" pubdate>
{{ .Date.Format "January 2, 2006" }}
</time>
</span>
{{ if not .Site.Params.repoURL }}
{{ if ne .Lastmod .Date }}
<span class="post-meta-item">
{{ partial "icon.html" "edit-2" }}
<time datetime="{{ .Lastmod.Format "2006-01-02" }}" pubdate>
{{ .Lastmod.Format "January 2, 2006" }}
</time>
{{ end }}
{{ end }}
</span>
{{ end }}
{{ end }}
{{ if .Site.Params.wordcount }}
<span class="post-meta-item">
@ -31,6 +34,7 @@
</span>
{{ end }}
{{ if .Site.Params.repoURL }}
{{ with .GitInfo }}
<span class="post-meta-item">
{{ partial "icon.html" "git-commit" }}
@ -39,6 +43,7 @@
</a>
</span>
{{ end }}
{{ end }}
<div class="tags">
{{ range (.GetTerms "tags") }}