diff --git a/layouts/_default/list.html b/layouts/_default/list.html index c0016be1..0dd7286b 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -51,7 +51,8 @@ diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 27c79d0d..b104c5f1 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -10,7 +10,9 @@
{{ if or .Params.author .Site.Params.author }} . {{ .Params.author | default .Site.Params.author }}{{ end }} - {{ if $.Site.Params.ShowReadingTime }} . {{ .ReadingTime }}{{ i18n "read_time" | default "min read" }}{{ end }} + {{ if $.Site.Params.ShowReadingTime }} . + {{ $default_txt := print .ReadingTime " " "min" }} + {{ i18n "read_time" .ReadingTime | default $default_txt }}{{ end }}
{{end}}