diff --git a/layouts/partials/edit_post.html b/layouts/partials/edit_post.html index 8d355d71..d24f5b55 100644 --- a/layouts/partials/edit_post.html +++ b/layouts/partials/edit_post.html @@ -2,7 +2,9 @@ {{- $fileUrlPath := path.Join .File.Path }} {{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) .IsTranslated }} | {{- end -}} - - {{- .Params.editPost.Text | default (site.Params.editPost.Text | default (i18n "edit_post" | default "Edit")) -}} - + + + {{- .Params.editPost.Text | default (site.Params.editPost.Text | default (i18n "edit_post" | default "Edit")) -}} + + {{- end }} diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index be71956d..ae996bad 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -5,16 +5,16 @@ {{- end }} {{- if (.Param "ShowReadingTime") -}} -{{- $scratch.Add "meta" (slice (i18n "read_time" .ReadingTime | default (printf "%d min" .ReadingTime))) }} +{{- $scratch.Add "meta" (slice (printf "%s" (i18n "read_time" .ReadingTime | default (printf "%d min" .ReadingTime)))) }} {{- end }} {{- if (.Param "ShowWordCount") -}} -{{- $scratch.Add "meta" (slice (i18n "words" .WordCount | default (printf "%d words" .WordCount))) }} +{{- $scratch.Add "meta" (slice (printf "%s" (i18n "words" .WordCount | default (printf "%d words" .WordCount)))) }} {{- end }} {{- if not (.Param "hideAuthor") -}} {{- with (partial "author.html" .) }} -{{- $scratch.Add "meta" (slice .) }} +{{- $scratch.Add "meta" (slice (printf "%s" .)) }} {{- end }} {{- end }} diff --git a/layouts/partials/translation_list.html b/layouts/partials/translation_list.html index 00282519..01729cd9 100644 --- a/layouts/partials/translation_list.html +++ b/layouts/partials/translation_list.html @@ -1,8 +1,8 @@ {{- if .IsTranslated -}} {{- if (ne .Layout "search") }} {{- if or .Params.author site.Params.author (.Param "ShowReadingTime") (not .Date.IsZero) }} | {{- end -}} -{{- end }} -{{- i18n "translations" | default "Translations" }}: +{{- end -}} +{{- i18n "translations" | default "Translations" }}: