option to write the reading time in the same language as the site
This commit is contained in:
parent
94d8927676
commit
de960997bc
@ -230,6 +230,8 @@ paginate = 5
|
|||||||
olderPosts = "Older posts"
|
olderPosts = "Older posts"
|
||||||
missingContentMessage = "Page not found..."
|
missingContentMessage = "Page not found..."
|
||||||
missingBackButtonLabel = "Back to home page"
|
missingBackButtonLabel = "Back to home page"
|
||||||
|
minuteReadingTime = "min read"
|
||||||
|
words = "words"
|
||||||
|
|
||||||
[languages.en.params.logo]
|
[languages.en.params.logo]
|
||||||
logoText = "Terminal"
|
logoText = "Terminal"
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<span class="post-author">{{ . }}</span>
|
<span class="post-author">{{ . }}</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if and (.Param "readingTime") (eq (.Param "readingTime") true) }}
|
{{ if and (.Param "readingTime") (eq (.Param "readingTime") true) }}
|
||||||
<span class="post-reading-time">:: {{ .ReadingTime }} min read ({{ .WordCount }} words)</span>
|
<span class="post-reading-time">:: {{ .ReadingTime }} {{ $.Site.Params.minuteReadingTime | default "min read" }} ({{ .WordCount }} {{ $.Site.Params.words | default "words" }})</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user