Hide footer.article-time when there's not content

This commit is contained in:
Jimmy Cai 2021-07-23 16:34:35 +00:00 committed by GitHub
parent f2b9e33495
commit 8bebab773a

View File

@ -21,6 +21,7 @@
</h3>
{{ end }}
{{ if or (not .Date.IsZero) (.Site.Params.article.readingTime) }}
<footer class="article-time">
{{ if not .Date.IsZero }}
<div>
@ -40,4 +41,5 @@
</div>
{{ end }}
</footer>
{{ end }}
</div>