{%- capture nowunix %}{{'now' | date: '%s'}}{% endcapture -%} {%- assign show_event = 2 -%} {%- 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" 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> {%- 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> </div> <div class="presence" id="presence" style="width: 80%; margin:0 auto; margin-top: -20px;"> </div>