mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-27 04:03:48 +01:00
feat(article): add readingTime
front matter field to overwrite global configuration (#701)
* add DisableReadTime for articles * change frontmatter disableReadingTime to readingTime
This commit is contained in:
parent
ae497c4789
commit
30fdd000f9
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@
|
|||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if .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 a new issue