From 95bd5678850ab6e4d49de4400a1560507c8d3ff3 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Mon, 29 Dec 2025 16:02:52 +0100 Subject: [PATCH] have the month show if the days span multiple months Signed-off-by: Toshaan Bharvani --- themes/devopsdays-theme/layouts/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/themes/devopsdays-theme/layouts/index.html b/themes/devopsdays-theme/layouts/index.html index 434960e4f57..3609ed2a3ed 100644 --- a/themes/devopsdays-theme/layouts/index.html +++ b/themes/devopsdays-theme/layouts/index.html @@ -48,7 +48,11 @@
{{- if or (ne (time .startdate).Month (time .enddate).Month) (ne (time .startdate).Day (time .enddate).Day) -}} - {{ dateFormat "Jan 2" .startdate }} - {{ dateFormat "2, 2006" .enddate }}
+ {{ if ne (time .startdate).Month (time .enddate).Month }} + {{ dateFormat "Jan 2" .startdate }} - {{ dateFormat "Jan 2, 2006" .enddate }}
+ {{ else }} + {{ dateFormat "Jan 2" .startdate }} - {{ dateFormat "2, 2006" .enddate }}
+ {{ end }}
{{- else -}}