From 8e20e4eba9625795d599d2ff0214e3a9be5ede34 Mon Sep 17 00:00:00 2001 From: tvluke <tvluke@chaotikum.org> Date: Tue, 30 May 2023 10:53:06 +0200 Subject: [PATCH] preview nicer --- _includes/space-status-mobile.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/space-status-mobile.html b/_includes/space-status-mobile.html index 8c0fe6bd..4d893ec5 100644 --- a/_includes/space-status-mobile.html +++ b/_includes/space-status-mobile.html @@ -7,7 +7,7 @@ {%- for e in site.events -%} {%- capture event_start_plus %}{{e.eventdate | date: '%s' | minus: 259200 }}{%- endcapture -%} {%- capture event_start %}{{e.eventdate | date: '%s' }}{%- endcapture -%} - {%- if event_start_plus < nowunix and event_start > nowunix -%} + {%- if event_start_plus < nowunix and event_start > nowunix and show_event > 1 -%} <b>Demnächst:</b> {%- assign show_event = 0 - %}<p id="nextevent_mobile"> {{ e.eventdate | date: "%d.%m.%Y %H:%M" }}: {{e.title}}</p> {%- endif -%} -- GitLab