diff options
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> |