From de960997bc835f75c328af55f3a3c402cf39121d Mon Sep 17 00:00:00 2001 From: Florian <26717601+florianbieser@users.noreply.github.com> Date: Wed, 18 Jan 2023 16:51:20 +0100 Subject: [PATCH 1/2] option to write the reading time in the same language as the site --- README.md | 2 ++ layouts/_default/single.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c88ba74..bcc883b 100644 --- a/README.md +++ b/README.md @@ -230,6 +230,8 @@ paginate = 5 olderPosts = "Older posts" missingContentMessage = "Page not found..." missingBackButtonLabel = "Back to home page" + minuteReadingTime = "min read" + words = "words" [languages.en.params.logo] logoText = "Terminal" diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 1bc4328..f85fc5d 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -16,7 +16,7 @@ {{ . }} {{ end }} {{ if and (.Param "readingTime") (eq (.Param "readingTime") true) }} - :: {{ .ReadingTime }} min read ({{ .WordCount }} words) + :: {{ .ReadingTime }} {{ $.Site.Params.minuteReadingTime | default "min read" }} ({{ .WordCount }} {{ $.Site.Params.words | default "words" }}) {{ end }} From 415337451b402bf7c1ab74ee44aafe9dc1c6544d Mon Sep 17 00:00:00 2001 From: Florian <26717601+florianbieser@users.noreply.github.com> Date: Thu, 19 Jan 2023 17:03:35 +0100 Subject: [PATCH 2/2] 4 spaces instead of 1 tab --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bcc883b..f57b78c 100644 --- a/README.md +++ b/README.md @@ -230,8 +230,8 @@ paginate = 5 olderPosts = "Older posts" missingContentMessage = "Page not found..." missingBackButtonLabel = "Back to home page" - minuteReadingTime = "min read" - words = "words" + minuteReadingTime = "min read" + words = "words" [languages.en.params.logo] logoText = "Terminal"