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 ++++++++------- layouts/partials/post.html | 28 +++++++++++++++------------- 2 files changed, 23 insertions(+), 20 deletions(-) (limited to 'layouts/partials') 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 }} diff --git a/layouts/partials/post.html b/layouts/partials/post.html index 637381b..a7e62ef 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -1,7 +1,7 @@ -