diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index dd3b9a5c..479ab897 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -1,5 +1,11 @@ - -{{- if $.Site.Params.ShowReadingTime -}} ·  -{{- $default_txt := print .ReadingTime " " "min" }} -{{- i18n "read_time" .ReadingTime | default $default_txt }}{{ end }} -{{- if or .Params.author .Site.Params.author }} · {{- .Params.author | default .Site.Params.author }}{{ end }} +{{- if not .Date.IsZero -}} + ·  +{{- end -}} + +{{- if $.Site.Params.ShowReadingTime -}} +{{- i18n "read_time" .ReadingTime | default (printf "%s min" .ReadingTime) }} ·  +{{- end -}} + +{{- if or .Params.author .Site.Params.author }} +{{- printf "%s" (.Params.author | default .Site.Params.author) }} +{{- end -}}