-
Notifications
You must be signed in to change notification settings - Fork 0
/
events.ics
48 lines (48 loc) · 1.59 KB
/
events.ics
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
layout: null
sitemap: false
---
BEGIN:VCALENDAR
VERSION:2.0
X-WR-TIMEZONE:Europe/Liestal
PRODID:-//MTG Baselland//NONSGML Event-Kalender//DE
URL:{{ site.url }}/events.ics
METHOD:PUBLISH
NAME:MTG Baselland Events
X-WR-CALNAME:MTG Baselland Events
REFRESH-INTERVAL;VALUE=DURATION:PT12H
X-PUBLISHED-TTL:PT12H
BEGIN:VTIMEZONE
TZID:Europe/Liestal
X-LIC-LOCATION:Europe/Liestal
BEGIN:DAYLIGHT
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;INTERVAL=1;BYMONTH=3;BYDAY=-1SU
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
END:DAYLIGHT
BEGIN:STANDARD
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;INTERVAL=1;BYMONTH=10;BYDAY=-1SU
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
END:STANDARD
END:VTIMEZONE
{%- assign upcoming_events = site.events | where_exp: "item", "item.date > site.time" | where_exp: "item", "item.type != 'cancelled'" -%}
{% for event in upcoming_events %}
BEGIN:VEVENT
UID:{{ event.date | date: "%Y%m%d" }}@mtgbl.ch
ORGANIZER;CN="MTG Baselland":MAILTO:[email protected]
{%- assign location = site.locations | where: "name", event.location | first -%}
{% assign oneline_address = location.address | newline_to_br | strip_newlines | split: "<br />" | join: "\, " %}
LOCATION:{{ oneline_address }}
SUMMARY:{{ event.title | remove: ',' | remove: ';' }}
CLASS:PUBLIC
DTSTART;TZID=Europe/Liestal:{{ event.date | date: "%Y%m%dT%H%M%S" }}
DTEND;TZID=Europe/Liestal:{% assign end_hour = event.date | date: "%H" | plus: 3 %}{{ event.date | date: "%Y%m%dT" }}{{ end_hour }}{{ event.date | date: "%M%S" }}
DTSTAMP:{{ event.date | date: "%Y%m%dT%H%M%S" }}
URL:{{ site.url }}{{ event.url }}
END:VEVENT{% endfor %}
END:VCALENDAR