aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/metadata.html
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2024-12-28 03:32:36 +0100
committerOscar Najera <hi@oscarnajera.com>2024-12-28 03:32:36 +0100
commitad38af9f73351d1e70e78615c09a0bd8f4e77357 (patch)
treed12faaf50edd27188d35afefb960d9754f82b18b /layouts/partials/metadata.html
parentcd2bdb86e66bdb609eeed6526d9b0235b16fd6bd (diff)
downloadhugo-minimalist-theme-ad38af9f73351d1e70e78615c09a0bd8f4e77357.tar.gz
hugo-minimalist-theme-ad38af9f73351d1e70e78615c09a0bd8f4e77357.tar.bz2
hugo-minimalist-theme-ad38af9f73351d1e70e78615c09a0bd8f4e77357.zip
Localize time
Diffstat (limited to 'layouts/partials/metadata.html')
-rw-r--r--layouts/partials/metadata.html9
1 files changed, 5 insertions, 4 deletions
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" }}
<div class="f6 lh-copy mv0 ph4 pv2">
- By &mdash;
+ {{ T "author_by" }} &mdash;
{{ range .Params.authors }}
{{ $name := . }}
{{ $path := printf "/%s/%s" "authors" ( $name | urlize ) }}
@@ -22,7 +22,7 @@
<br />
<i class="far fa-calendar"></i>
<time datetime="{{ $dateTime }}">
- {{ .Date.Format $dateFormat }}
+ {{ time.Format $dateFormat .Date }}
</time>
{{ with .Params.location }}
&mdash;
@@ -30,7 +30,8 @@
{{ end }}
{{ if eq .Section "post" }}
- | {{ .ReadingTime }} mins read
+ | {{ .ReadingTime }}
+ {{ i18n "minute_read" }}
{{ end }}
{{ with .GetTerms "tags" }}