diff options
author | MM <14907823+MirMiz@users.noreply.github.com> | 2023-04-23 23:09:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-23 23:09:54 +0200 |
commit | fea94cf3390954ad25cc12104991193adddb2632 (patch) | |
tree | dccb3579c16d3539e5dfcf5282f475baccb2725d /layouts/issues | |
parent | 9d0a4a7124589aa2cf9ed9c586d03ec1bf5406c7 (diff) |
use dateFormat instead of .Date.Format for better localization
Diffstat (limited to 'layouts/issues')
-rw-r--r-- | layouts/issues/small.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/issues/small.html b/layouts/issues/small.html index 5eb3a2d..9c21cfb 100644 --- a/layouts/issues/small.html +++ b/layouts/issues/small.html @@ -10,7 +10,7 @@ <small class="date float-right {{ cond .Site.Params.useRelativeTime "relative-time" "" }}" title="{{ .Date.Format "Jan 2 15:04:05 2006 UTC" }}"> {{ if .Site.Params.dateFormat }} - {{ .Date.Format .Site.Params.dateFormat }} + {{ dateFormat .Site.Params.dateFormat .Params.date }} {{ else }} {{ .Date.Format "January 2, 2006 at 3:04 PM" }} {{ end }} @@ -25,7 +25,7 @@ {{ else if .Params.Resolved }} <small class="date float-right {{ cond .Site.Params.useRelativeTime "relative-time" "" }}" title="{{ .Date.Format "Jan 2 15:04:05 2006 UTC" }}"> {{ if .Site.Params.dateFormat }} - {{ .Date.Format .Site.Params.dateFormat }} + {{ dateFormat .Site.Params.dateFormat .Params.date }} {{ else }} {{ .Date.Format "January 2, 2006 at 3:04 PM" }} {{ end }} |