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 }}