mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 04:13:17 -06:00
Don't show empty post-metadata div
This commit is contained in:
parent
0067109d4a
commit
cd4bfc40a2
@ -15,6 +15,7 @@
|
|||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
{{ if or .Date (.GetTerms "tags") }}
|
||||||
<div class="post-metadata">
|
<div class="post-metadata">
|
||||||
{{ if .Date }}
|
{{ if .Date }}
|
||||||
<time datetime="{{ .Date.Format "January 2, 2006" }}" pubdate>
|
<time datetime="{{ .Date.Format "January 2, 2006" }}" pubdate>
|
||||||
@ -33,6 +34,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<div class="post-description">
|
<div class="post-description">
|
||||||
{{ if .Description }}
|
{{ if .Description }}
|
||||||
|
Loading…
Reference in New Issue
Block a user