--- layout: ical type: text/calendar --- BEGIN:VCALENDAR VERSION:2.0 X-WR-CALNAME:Chaotikum X-WR-CALDESC:Termine des Chaotikum e.V. CALSCALE:GREGORIAN PRODID:http://www.example.com/ METHOD:PUBLISH BEGIN:VEVENT UID:{{ page.uid }} ORGANIZER;CN={% if page.organizer and page.organizer != "" and page.organizer != nil %}{{page.organizer}}{% else %}Chaotikum e.V.{% endif %}:MAILTO:{{page.contact}} LOCATION:{% if page.locations contains 'Augenprüfraum' and page.locations contains 'Wartezimmer' and page.locations contains 'Lager' %}Nobreaksoace{% else %}{{ page.locations | array_to_sentence_string }}{% endif %}{% capture textSize %}{{ page.short | size }}{% endcapture %}{% assign linelength = 60 %}{% assign rounds = textSize | divided_by: linelength %}{% assign extra = textSize | modulo: linelength %}{% assign start = 0 %} SUMMARY:{{ page.title | xml_escape }} DESCRIPTION:{% for i in (1..rounds) %}{% if i > 1 %} {% endif %}{{ page.short | slice: start, linelength }}{% assign start = start | plus: linelength %} {% endfor%} {{ page.short | slice: start, extra }} CLASS:PUBLIC DTSTART;TZID=Europe/Berlin:{{ page.eventdate | date: "%Y%m%d" }}T{{ page.eventdate | date: "%H%M%S" }} DTEND;TZID=Europe/Berlin:{{ page.eventend | date: "%Y%m%d" }}T{{ page.eventend | date: "%H%M%S" }} DTSTAMP:{{ page.eventdate | date: "%Y%m%d" }}T{{ page.eventdate | date: "%H%M%S" }}Z END:VEVENT END:VCALENDAR