From dee863b5e0812f95db4caf367983864a74b63ccc Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Mon, 6 Jan 2025 01:05:02 +0100 Subject: translate posts listing --- layouts/partials/metadata.html | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'layouts/partials/metadata.html') diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index 668ac20..8679be6 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -1,13 +1,13 @@ {{ $dateTime := .PublishDate.Format "2006-01-02" }} {{ $dateFormat := .Site.Params.dateFormat | default ":date_medium" }} -
+
{{ T "author_by" }} — {{ range .Params.authors }} {{ $name := . }} {{ $path := printf "/%s/%s" "authors" ( $name | urlize ) }} {{ with $.GetPage $path }} {{ if isset .Params "name" }} - + {{- default $name .Params.name -}} {{ else }} @@ -30,17 +30,18 @@ {{ end }} {{ if eq .Section "post" }} - | {{ .ReadingTime }} + | + {{ .ReadingTime }} {{ i18n "minute_read" }} {{ end }} {{ with .GetTerms "tags" }} | - + {{ range . }} - + {{- .Title -}} {{ end }} @@ -48,11 +49,11 @@ {{ with .GetTerms "categories" }} | - + {{ range . }} - + {{- .Title -}} {{ end }} -- cgit v1.2.3