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
@ -34,7 +34,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.Params.article.readingTime }}
|
{{ if (.Params.readingTime | default (.Site.Params.article.readingTime)) }}
|
||||||
<div>
|
<div>
|
||||||
{{ partial "helper/icon" "clock" }}
|
{{ partial "helper/icon" "clock" }}
|
||||||
<time class="article-time--reading">
|
<time class="article-time--reading">
|
||||||
|
Loading…
Reference in New Issue
Block a user