diff options
author | Ahmad Helaly <58439278+escalopa@users.noreply.github.com> | 2022-10-22 12:48:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-22 12:48:00 +0300 |
commit | 30fdd000f9de7ccf55490fb553d1c4519acbfac4 (patch) | |
tree | bff0a147041362f91004106947b06597b8ec478f | |
parent | ae497c478924fb454783b3953d3ff09188ccdfcb (diff) |
feat(article): add `readingTime` front matter field to overwrite global configuration (#701)
* add DisableReadTime for articles
* change frontmatter disableReadingTime to readingTime
-rw-r--r-- | layouts/partials/article/components/details.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/article/components/details.html b/layouts/partials/article/components/details.html index 4cd26e3..eed3aef 100644 --- a/layouts/partials/article/components/details.html +++ b/layouts/partials/article/components/details.html @@ -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>
\ No newline at end of file +</div> |