From fea94cf3390954ad25cc12104991193adddb2632 Mon Sep 17 00:00:00 2001 From: MM <14907823+MirMiz@users.noreply.github.com> Date: Sun, 23 Apr 2023 23:09:54 +0200 Subject: use dateFormat instead of .Date.Format for better localization --- layouts/issues/small.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layouts') 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 @@ {{ 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 }} {{ 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 }} -- cgit v1.2.3-70-g09d2