From 90c1e00005a0c256a2a7331f5a25c1a796489cb0 Mon Sep 17 00:00:00 2001 From: bitwhisker Date: Mon, 1 Jun 2026 20:00:39 +0200 Subject: [PATCH] show canceled calendar events as canceld on home page --- themes/ccchh/layouts/shortcodes/calendar-table.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/themes/ccchh/layouts/shortcodes/calendar-table.html b/themes/ccchh/layouts/shortcodes/calendar-table.html index ecc37a5..558f824 100644 --- a/themes/ccchh/layouts/shortcodes/calendar-table.html +++ b/themes/ccchh/layouts/shortcodes/calendar-table.html @@ -12,17 +12,17 @@ {{- if eq ._type "vevent"}} {{- $start := time .dtstart }} - {{ time.Format "Mon, 2006-01-02 15:04" $start.Local }} + {{- if eq .status "CANCELLED" }}{{- end }}{{ time.Format "Mon, 2006-01-02 15:04" $start.Local }}{{- if eq .status "CANCELLED" }}{{- end }} {{- $potentialUrl := index (findRE `https?://\S*` .description 1) 0 }} {{- if eq $potentialUrl nil }} - {{ .summary }} + {{- if eq .status "CANCELLED" }}{{- end }}{{ .summary }}{{- if eq .status "CANCELLED" }}{{- end }} {{- else }} - {{ .summary }} + {{- if eq .status "CANCELLED" }}{{- end }}{{ .summary }}{{- if eq .status "CANCELLED" }}{{- end }} {{- end }} {{- if eq .location "Z9" }} - Z9 + {{- if eq .status "CANCELLED" }}{{- end }}Z9{{- if eq .status "CANCELLED" }}{{- end }} {{- else }} - {{ .location }} + {{- if eq .status "CANCELLED" }}{{- end }}{{ .location }}{{- if eq .status "CANCELLED" }}{{- end }} {{- end }} {{- end }}