aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/taxonomy
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/taxonomy
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/taxonomy')
-rw-r--r--layouts/taxonomy/terms.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/taxonomy/terms.html b/layouts/taxonomy/terms.html
index 347e4a5..f2c0895 100644
--- a/layouts/taxonomy/terms.html
+++ b/layouts/taxonomy/terms.html
@@ -32,13 +32,13 @@
<ul class="list ph5">
{{ range .Pages.ByDate }}
<li class="lh-copy stripe-dark ph1 pv2">
- {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
+ {{ $dateFormat := .Site.Params.dateFormat | default ":date_medium" }}
<time
datetime="{{ .Date.Format "2006-01-02" }}"
class="f6 fw3 fr ml2"
>
<i class="far fa-calendar"></i>
- {{ .Date.Format $dateFormat }}
+ {{ time.Format $dateFormat .Date }}
</time>
<a class="link dim color-inherit" href="{{ .RelPermalink }}">
{{ .Title }}