Don't show empty post-metadata div

This commit is contained in:
BBaoVanC 2021-10-02 17:32:36 -05:00
parent 0067109d4a
commit cd4bfc40a2
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
</h2>
{{ if or .Date (.GetTerms "tags") }}
<div class="post-metadata">
{{ if .Date }}
<time datetime="{{ .Date.Format "January 2, 2006" }}" pubdate>
@ -33,6 +34,7 @@
{{ end }}
</span>
</div>
{{ end }}
<div class="post-description">
{{ if .Description }}