diff --git a/events.ics b/events.ics index b7682ac5f94fb259b34b271b8935d6cc70561f00..9e610d8e83c636b61eba8a60361bdcb5acb9fffa 100644 --- a/events.ics +++ b/events.ics @@ -9,8 +9,8 @@ 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 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 }} +LOCATION:{% if event.locations contains 'Augenprüfraum' and event.locations contains 'Wartezimmer' and event.locations contains 'Lager' %}Nobreakspace{% else %}{{ event.locations | array_to_sentence_string }}{% endif %}{% capture textSize %}{{ event.short | size }}{% endcapture %}{% assign linelength = 50 %}{% assign rounds = textSize | divided_by: linelength %}{% assign extra = textSize | modulo: linelength %}{% assign start = 0 %} +SUMMARY:{{ event.title | xml_escape | truncate: 60}} DESCRIPTION:{% for i in (1..rounds) %}{{ event.short | slice: start, linelength }}{% assign start = start | plus: linelength %} {% endfor%}{{ event.short | slice: start, extra }} CLASS:PUBLIC