diff options
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/metadata.html | 9 |
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 — + {{ T "author_by" }} — {{ 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 }} — @@ -30,7 +30,8 @@ {{ end }} {{ if eq .Section "post" }} - | {{ .ReadingTime }} mins read + | {{ .ReadingTime }} + {{ i18n "minute_read" }} {{ end }} {{ with .GetTerms "tags" }} |