From dea5dbc0f7a3eb042a3eab75bef60975030244b3 Mon Sep 17 00:00:00 2001 From: bugrasan <> Date: Sun, 30 Jan 2022 19:16:10 +0100 Subject: [PATCH] patch for 'showReadingTime' config option --- layouts/blog/single.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 6a7f5b3..36eb813 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -10,8 +10,8 @@ {{ .Title }}
- {{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} |{{ end }} - {{ i18n "blog_readingTime" .ReadingTime }} + {{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}{{ end }} + {{ if .Site.Params.showReadingTime }} | {{ i18n "blog_readingTime" .ReadingTime }} {{ end }}
{{ if or .Site.Params.share.twitter .Site.Params.share.facebook .Site.Params.share.pinterest .Site.Params.share.googlePlus }}