diff options
author | Oscar Najera <hi@oscarnajera.com> | 2024-12-28 03:32:36 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2024-12-28 03:32:36 +0100 |
commit | ad38af9f73351d1e70e78615c09a0bd8f4e77357 (patch) | |
tree | d12faaf50edd27188d35afefb960d9754f82b18b /layouts/404.html | |
parent | cd2bdb86e66bdb609eeed6526d9b0235b16fd6bd (diff) | |
download | hugo-minimalist-theme-ad38af9f73351d1e70e78615c09a0bd8f4e77357.tar.gz hugo-minimalist-theme-ad38af9f73351d1e70e78615c09a0bd8f4e77357.tar.bz2 hugo-minimalist-theme-ad38af9f73351d1e70e78615c09a0bd8f4e77357.zip |
Localize time
Diffstat (limited to 'layouts/404.html')
-rw-r--r-- | layouts/404.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/layouts/404.html b/layouts/404.html index 016a86d..50cf5a3 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -14,15 +14,15 @@ <ul class="list ph5"> {{ range first 10 $query }} <li class="lh-copy stripe-dark ph1 pv2"> - {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }} - <time - datetime="{{ .Date.Format "2006-01-02" }}" - class="f6 fw3 fr ml2" - > - <i class="far fa-calendar"></i> - {{ .Date.Format $dateFormat }} - </time> <a class="link dim color-inherit" href="{{ .RelPermalink }}"> + {{ $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> + {{ time.Format $dateFormat .Date }} + </time> {{ .Title }} </a> </li> |