aboutsummaryrefslogtreecommitdiff
path: root/layouts/issues/small.html
diff options
context:
space:
mode:
authorMM <14907823+MirMiz@users.noreply.github.com>2023-04-23 23:09:54 +0200
committerGitHub <noreply@github.com>2023-04-23 23:09:54 +0200
commitfea94cf3390954ad25cc12104991193adddb2632 (patch)
treedccb3579c16d3539e5dfcf5282f475baccb2725d /layouts/issues/small.html
parent9d0a4a7124589aa2cf9ed9c586d03ec1bf5406c7 (diff)
use dateFormat instead of .Date.Format for better localization
Diffstat (limited to 'layouts/issues/small.html')
-rw-r--r--layouts/issues/small.html4
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 }}