From 30fdd000f9de7ccf55490fb553d1c4519acbfac4 Mon Sep 17 00:00:00 2001 From: Ahmad Helaly <58439278+escalopa@users.noreply.github.com> Date: Sat, 22 Oct 2022 12:48:00 +0300 Subject: [PATCH] feat(article): add `readingTime` front matter field to overwrite global configuration (#701) * add DisableReadTime for articles * change frontmatter disableReadingTime to readingTime --- layouts/partials/article/components/details.html | 4 ++-- 1 file 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 @@ {{ end }} - {{ if .Site.Params.article.readingTime }} + {{ if (.Params.readingTime | default (.Site.Params.article.readingTime)) }}
{{ partial "helper/icon" "clock" }}
{{ end }} - \ No newline at end of file +