mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
change frontmatter disableReadingTime to readingTime
This commit is contained in:
parent
4e6930061d
commit
64f5585c4d
@ -34,7 +34,7 @@
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if and (not (.Params.DisableReadTime | default false)) (.Site.Params.article.readingTime)}}
|
||||
{{ if (.Params.readingTime | default (.Site.Params.article.readingTime)) }}
|
||||
<div>
|
||||
{{ partial "helper/icon" "clock" }}
|
||||
<time class="article-time--reading">
|
||||
@ -55,4 +55,4 @@
|
||||
</div>
|
||||
</footer>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user