mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 20:13: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>
|
</h3>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if or (not .Date.IsZero) (.Site.Params.article.readingTime) }}
|
||||||
<footer class="article-time">
|
<footer class="article-time">
|
||||||
{{ if not .Date.IsZero }}
|
{{ if not .Date.IsZero }}
|
||||||
<div>
|
<div>
|
||||||
@ -40,4 +41,5 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</footer>
|
</footer>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue
Block a user