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

preview nicer

parent 3fac0ac4
No related branches found
No related tags found
No related merge requests found
Pipeline #8956 passed
...@@ -2,13 +2,14 @@ ...@@ -2,13 +2,14 @@
Ob der Nobreakspace offen ist siehst du <a href='https://status.nobreakspace.org' target='_blank'>hier</a><p>Oder aktiviere Javascript</p> Ob der Nobreakspace offen ist siehst du <a href='https://status.nobreakspace.org' target='_blank'>hier</a><p>Oder aktiviere Javascript</p>
</div> </div>
<div id="event_soon_mobile" style="margin-top: 5px;"> <div id="event_soon_mobile" style="margin-top: 5px;">
{% capture nowunix %}{{'now' | date: '%s'}}{% endcapture -%} {%- capture nowunix %}{{'now' | date: '%s'}}{% endcapture -%}
<b>Demnächst:</b> {%- assign show_event = 2 -%}
{% for e in site.events -%} {%- for e in site.events -%}
{% capture event_start_plus %}{{e.eventdate | date: '%s' | minus: 259200 }}{% endcapture -%} {%- capture event_start_plus %}{{e.eventdate | date: '%s' | minus: 259200 }}{%- endcapture -%}
{% capture event_start %}{{e.eventdate | date: '%s' }}{% 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 -%}
<p id="nextevent_mobile"> {{ e.eventdate | date: "%d.%m.%Y %H:%M" }}: {{e.title}}</p> <b>Demnächst:</b>
{% endif -%} {%- assign show_event = 0 - %}<p id="nextevent_mobile"> {{ e.eventdate | date: "%d.%m.%Y %H:%M" }}: {{e.title}}</p>
{%- endif -%}
{% endfor -%} {% endfor -%}
</div> </div>
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