aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/pageinfo.html
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-07-31 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-07-31 00:00:00 +0000
commitbac4e7fabed4319f91f9f6be0f92c9c4fdff9ec0a61275a339e0271d2ccaffa8 (patch)
tree43c0b42bec5756bf60cf0607f7810a9ddf5ea440efec6056a4a65d0a8eff2222 /layouts/partials/pageinfo.html
parent5ab2048f8e69d21902f379bb281fa947d31e7f0399556ab96f18841d9005e250 (diff)
downloadhugo-theme-journal-bac4e7fabed4319f91f9f6be0f92c9c4fdff9ec0a61275a339e0271d2ccaffa8.tar.gz
hugo-theme-journal-bac4e7fabed4319f91f9f6be0f92c9c4fdff9ec0a61275a339e0271d2ccaffa8.zip
Add multilingual support for reading time
Diffstat (limited to 'layouts/partials/pageinfo.html')
-rw-r--r--layouts/partials/pageinfo.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/pageinfo.html b/layouts/partials/pageinfo.html
index bba7c1c..4c8f419 100644
--- a/layouts/partials/pageinfo.html
+++ b/layouts/partials/pageinfo.html
@@ -1,2 +1,2 @@
{{ $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" -}}
-{{ emojify ":calendar:" | safeHTML }}&nbsp;{{ .Page.PublishDate.Format $dateFormat | safeHTML }} | {{ emojify ":stopwatch:" | safeHTML }}&nbsp;{{ .Page.ReadingTime | safeHTML }} minute read{{ if .Page.Params.Tags }} | {{ emojify ":label:" | safeHTML }}&nbsp;{{ end }}{{ range $key, $val := .Page.Params.Tags }}{{ if $key }}, {{ end }}<a class="link" href='{{ "/tags/" }}{{ . | urlize }}' rel="noreferrer">{{ $val }}</a>{{ end }}
+{{ emojify ":calendar:" | safeHTML }}&nbsp;{{ .Page.PublishDate.Format $dateFormat | safeHTML }} | {{ emojify ":stopwatch:" | safeHTML }}&nbsp;{{ i18n "readingTime" .ReadingTime | safeHTML }}{{ if .Page.Params.Tags }} | {{ emojify ":label:" | safeHTML }}&nbsp;{{ end }}{{ range $key, $val := .Page.Params.Tags }}{{ if $key }}, {{ end }}<a class="link" href='{{ "/tags/" }}{{ . | urlize }}' rel="noreferrer">{{ $val }}</a>{{ end }}