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 { .post-meta-item {
margin-right: 5px; margin-right: 10px;
white-space: nowrap; white-space: nowrap;
} }

View File

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