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

location fix

parent d238abf5
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -9,7 +9,7 @@ METHOD:PUBLISH
{% for event in site.events %}BEGIN:VEVENT
UID:{{ event.uid }}
ORGANIZER;CN={% if event.organizer and event.organizer != "" and event.organizer != nil %}{{event.organizer}}{% else %}Chaotikum e.V.{% endif %}:MAILTO:{{event.contact}}
LOCATION:{% if event.locations conatins 'Augenprüfraum' and event.locations conatins 'Wartezimmer' and event.locations conatins 'Lager' %}Nobreaksoace{% else %}{{ event.locations | array_to_sentence_string }}{% endif %}{% capture textSize %}{{ event.short | size }}{% endcapture %}{% assign linelength = 60 %}{% assign rounds = textSize | divided_by: linelength %}{% assign extra = textSize | modulo: linelength %}{% assign start = 0 %}
LOCATION:{% if event.locations contains 'Augenprüfraum' and event.locations contains 'Wartezimmer' and event.locations contains 'Lager' %}Nobreaksoace{% else %}{{ event.locations | array_to_sentence_string }}{% endif %}{% capture textSize %}{{ event.short | size }}{% endcapture %}{% assign linelength = 60 %}{% assign rounds = textSize | divided_by: linelength %}{% assign extra = textSize | modulo: linelength %}{% assign start = 0 %}
SUMMARY:{{ event.title | xml_escape }}
DESCRIPTION:{% for i in (1..rounds) %}{{ event.short | slice: start, linelength }}{% assign start = start | plus: linelength %}
{% endfor%}{{ event.short | slice: start, extra }}
......
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