diff --git a/README.md b/README.md index c88ba74..f57b78c 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 }}