From 758ccf59f5bd2191562b11d1c1aaf75418f641d0 Mon Sep 17 00:00:00 2001 From: Jakub Date: Tue, 27 Feb 2024 00:15:51 -0500 Subject: [PATCH] use localized date for further events --- layouts/shortcodes/cal_layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/cal_layout.html b/layouts/shortcodes/cal_layout.html index a683bcd..126bb3c 100644 --- a/layouts/shortcodes/cal_layout.html +++ b/layouts/shortcodes/cal_layout.html @@ -189,7 +189,7 @@ {{ range sort (where .Site.RegularPages "Section" "events") "Params.start_date" "asc" }} {{ $eventDate := time.AsTime .Params.start_date }} {{ if and ( or ($eventDate.After $startDate) ($eventDate.Equal $startDate)) ($eventDate.Before $endDate) }} -
  • {{$eventDate.Format "Jan 2, 2006" }} - {{.Title}}
  • +
  • {{$eventDate | time.Format ":date_medium" }} - {{.Title}}
  • {{ end }} {{ end }}