diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-01-24 18:07:17 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-01-24 18:08:15 +0530 |
| commit | f7dbf75d5b91cbe97bb82579aad8defa98c42402 (patch) | |
| tree | 3db961c07daea3ea20b42f56a00c2cdf66b9e6d0 /layouts/partials | |
| parent | bc4d4153dc4eb114c1c4fbca3615d21eac13e7b2 (diff) | |
allow setting ShowReadingTime per-page
as well as site-wide
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/post_meta.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index e0dbef4..d0cf176 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -4,7 +4,7 @@ {{- $scratch.Add "meta" (slice (.Date.Format (default "January 2, 2006" .Site.Params.DateFormat))) }} {{- end -}} -{{- if $.Site.Params.ShowReadingTime -}} +{{- if (.Param "ShowReadingTime") -}} {{- $scratch.Add "meta" (slice (i18n "read_time" .ReadingTime | default (printf "%s min" .ReadingTime))) }} {{- end -}} |
