From 2b3c8ebe37a290d2165082f579f390e885d5bc5e Mon Sep 17 00:00:00 2001 From: Lukas Ruge <lukeslog@googlemail.com> Date: Sun, 12 Aug 2018 12:10:38 +0200 Subject: [PATCH] events.ics --- events.ics | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 events.ics diff --git a/events.ics b/events.ics new file mode 100644 index 00000000..ee801f34 --- /dev/null +++ b/events.ics @@ -0,0 +1,18 @@ +--- +layout: none +--- +BEGIN:VCALENDAR +VERSION:2.0 +PRODID:http://www.example.com/ +METHOD:PUBLISH +{% for event in site.events limit:10 %}BEGIN:VEVENT +UID:{{ event.eventdate | date: "%Y%m%d" }}@chaotikum.com +ORGANIZER;CN="Chaotikum e.V.":MAILTO:{{event.contact}} +LOCATION:Chaotikum +SUMMARY:{{ post.short }} +CLASS:PUBLIC +DTSTART:{{ post.eventdate | date: "%Y%m%d" }}T{{ post.eventdate | date: "%H%M%S" }}Z +DTEND:{{ post.eventdate | date: "%Y%m%d" }}T{{ post.eventdate | date: "%H%M%S" }}Z +DTSTAMP:{{ post.eventdate | date: "%Y%m%d" }}T{{ post.eventdate | date: "%H%M%S" }}Z +END:VEVENT{% endfor %} +END:VCALENDAR -- GitLab