From dea5dbc0f7a3eb042a3eab75bef60975030244b3 Mon Sep 17 00:00:00 2001
From: bugrasan <>
Date: Sun, 30 Jan 2022 19:16:10 +0100
Subject: [PATCH 1/2] 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 6a7f5b38..36eb8135 100644
--- a/layouts/blog/single.html
+++ b/layouts/blog/single.html
@@ -10,8 +10,8 @@
- {{ 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 }}
From 18f2b09a7ac46f6a951c197c49af4cb9736c6986 Mon Sep 17 00:00:00 2001
From: bugrasan
Date: Tue, 1 Feb 2022 01:51:46 +0000
Subject: [PATCH 2/2] fixing the default behaviour for showReadingTime
---
layouts/blog/single.html | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/layouts/blog/single.html b/layouts/blog/single.html
index 36eb8135..24c986bd 100644
--- a/layouts/blog/single.html
+++ b/layouts/blog/single.html
@@ -11,7 +11,10 @@
{{ if .Params.date }}{{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }}{{ end }}
- {{ if .Site.Params.showReadingTime }} | {{ i18n "blog_readingTime" .ReadingTime }} {{ end }}
+ {{ if .Site.Params.showReadingTime | default true }}
+ {{ if .Params.date }} | {{ end }}
+ {{ i18n "blog_readingTime" .ReadingTime }}
+ {{ end }}
{{ if or .Site.Params.share.twitter .Site.Params.share.facebook .Site.Params.share.pinterest .Site.Params.share.googlePlus }}