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:
Ahmad Helaly 2022-10-22 12:48:00 +03:00 committed by GitHub
parent ae497c4789
commit 30fdd000f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>