From 7cb9c7745f881107e583857b3c9ea93e7c385f03 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sun, 24 Apr 2022 09:18:32 +0200 Subject: [PATCH] [ci skip] Update the single page with changes from Ananke --- layouts/_default/single.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 849b9ac..0f1524b 100755 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -20,19 +20,21 @@ {{ with .Params.author }}

- By - {{ if reflect.IsSlice . }} + {{ $.Render "by" }} + {{- if reflect.IsSlice . -}} {{ delimit . ", " | markdownify }} - {{else}} + {{- else -}} {{ . | markdownify }} - {{ end }} + {{- end -}}

{{ end }} {{/* Hugo uses Go's date formatting is set by example. Here are two formats */}} + {{ if not .Date.IsZero }} + {{end}} {{/* Show "reading time" and "word count" but only if one of the following are true: @@ -41,8 +43,8 @@ 3) A page front matter value is set `show_reading_time = true` */}} {{ if (or (eq (.Param "show_reading_time") true) (eq $section.Params.show_reading_time true) )}} - - {{ .ReadingTime}} minutes read - - {{ .WordCount}} words + - {{ i18n "readingTime" .ReadingTime }} + - {{ i18n "wordCount" .WordCount }} {{ end }} {{ if .Site.Params.commentoEnable }}