Skip to content
Snippets Groups Projects
events.ics 1.45 KiB
Newer Older
Lukas Ruge's avatar
Lukas Ruge committed
---
layout: none
Lukas Ruge's avatar
Lukas Ruge committed
type: text/calendar
Lukas Ruge's avatar
Lukas Ruge committed
---
BEGIN:VCALENDAR
Lukas Ruge's avatar
Lukas Ruge committed
VERSION:2.0
Malte Schmitz's avatar
Malte Schmitz committed
X-WR-CALNAME:Chaotikum
X-WR-CALDESC:Termine des Chaotikum e.V.
Lukas Ruge's avatar
Lukas Ruge committed
CALSCALE:GREGORIAN
PRODID:https://chaotikum.org/
METHOD:PUBLISH
{% for event in site.events %}BEGIN:VEVENT
Lukas Ruge's avatar
Lukas Ruge committed
UID:{{ event.uid }}
Lukas Ruge's avatar
Lukas Ruge committed
ORGANIZER;CN={% if event.organizer and event.organizer != "" and event.organizer != nil %}{{event.organizer}}{% else %}Chaotikum e.V.{% endif %}:MAILTO:{{event.contact}}
Lukas Ruge's avatar
Lukas Ruge committed
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}}
Johannes Gosch's avatar
Johannes Gosch committed
DESCRIPTION:{% for i in (1..rounds) %}{% if i > 1 %} {% endif %}{{ event.short | slice: start, linelength }}{% assign start = start | plus: linelength %}
{% endfor%}{{ event.short | slice: start, extra | prepend: " " }}
Lukas Ruge's avatar
Lukas Ruge committed
CLASS:PUBLIC
Lukas Ruge's avatar
Lukas Ruge committed
DTSTART;TZID=Europe/Berlin:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}
DTEND;TZID=Europe/Berlin:{{ event.eventend | date: "%Y%m%d" }}T{{ event.eventend | date: "%H%M%S" }}
Lukas Ruge's avatar
Lukas Ruge committed
DTSTAMP:{{ event.eventdate | date: "%Y%m%d" }}T{{ event.eventdate | date: "%H%M%S" }}Z
END:VEVENT
{% endfor %}END:VCALENDAR