Skip to content
Snippets Groups Projects
Commit fdf8af12 authored by Lukas Ruge's avatar Lukas Ruge
Browse files

nicht jedes event muss auf der frontpage angekündigt werden

parent 1d13855c
No related branches found
No related tags found
No related merge requests found
Pipeline #10009 passed
......@@ -5,6 +5,7 @@ eventdate: 2023-07-04 09:00:00 +0100
eventend: 2023-07-04 18:00:00 +0100
#https://www.uuidgenerator.net/
uid: eb69b7f4-2c5a-47e1-9d68-513bf3a73a2d
nofrontpage: true
contact: info@chaotikum.org
locations:
- nbsp
......
......@@ -6,10 +6,12 @@
{%- 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 and show_event > 1 -%}
<div id="event_soon_mobile" style="margin-top: 5px;">
<b>🗓</b>
{%- assign show_event = 0 - %}<p id="nextevent_mobile"> {{ e.eventdate | date: "%d.%m.%Y %H:%M" }}: {{e.title}}</p>
</div>
{%- if event_start_plus < nowunix and event_start > nowunix and show_event > 1 -%}
{%- if e.nofrontpage == nil or e.nofrontpage == '' -%}
<div id="event_soon_mobile" style="margin-top: 5px;">
<b>🗓</b>
{%- assign show_event = 0 - %}<p id="nextevent_mobile"> {{ e.eventdate | date: "%d.%m.%Y %H:%M" }}: {{e.title}}</p>
</div>
{%- endif -%}
{%- endif -%}
{% endfor -%}
......@@ -4,10 +4,13 @@
{%- 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 and show_event > 1 -%}
<div id="event_soon" style="margin-top: 5px;">
<b>🗓</b>
{%- assign show_event = 0 - %}<p id="nextevent"> {{ e.eventdate | date: "%d.%m.%Y %H:%M" }}: {{e.title}}</p>{% endif -%}
</div>
{%- if e.nofrontpage == nil or e.nofrontpage == '' -%}
<div id="event_soon" style="margin-top: 5px;">
<b>🗓</b>
{%- assign show_event = 0 - %}<p id="nextevent"> {{ e.eventdate | date: "%d.%m.%Y %H:%M" }}: {{e.title}}</p>
</div>
{% endif -%}
{% endif -%}
{%- endfor -%}
<div id="spaceopen" class="chaotikum-about">
Ob der Nobreakspace offen ist siehst du <a href='https://status.nobreakspace.org' target='_blank'>hier</a><p>Oder aktiviere Javascript</p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment