From ad38af9f73351d1e70e78615c09a0bd8f4e77357 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Sat, 28 Dec 2024 03:32:36 +0100 Subject: Localize time --- layouts/partials/metadata.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html index bb2e4d3..e1408ad 100644 --- a/layouts/partials/metadata.html +++ b/layouts/partials/metadata.html @@ -1,7 +1,7 @@ {{ $dateTime := .PublishDate.Format "2006-01-02" }} -{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }} +{{ $dateFormat := .Site.Params.dateFormat | default ":date_medium" }}
- By — + {{ T "author_by" }} — {{ range .Params.authors }} {{ $name := . }} {{ $path := printf "/%s/%s" "authors" ( $name | urlize ) }} @@ -22,7 +22,7 @@
{{ with .Params.location }} — @@ -30,7 +30,8 @@ {{ end }} {{ if eq .Section "post" }} - | {{ .ReadingTime }} mins read + | {{ .ReadingTime }} + {{ i18n "minute_read" }} {{ end }} {{ with .GetTerms "tags" }} -- cgit v1.2.3