mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 12:03:31 +08:00
Hide footer.article-time when there's not content
This commit is contained in:
parent
f2b9e33495
commit
8bebab773a
@ -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>
|
Loading…
Reference in New Issue
Block a user