-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathevents.ics
More file actions
41 lines (41 loc) · 1.7 KB
/
events.ics
File metadata and controls
41 lines (41 loc) · 1.7 KB
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
---
layout: null
---
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//{{ site.title }}//Veranstaltungskalender//DE
METHOD:PUBLISH
X-WR-CALNAME:{{ site.name }}
X-WR-CALDESC:Veranstaltungen der {{ site.title }}
CALSCALE:GREGORIAN
BEGIN:VTIMEZONE
TZID:Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE
{% for post in site.pages reversed %}{% assign sitedate = site.time | date: "%Y%m%d" %}{% assign postdate = post.date | date: "%Y%m%d" %}{% if postdate > sitedate %}BEGIN:VEVENT
UID:{{ post.date | date: "%Y%m%d" }}@cyberland.ijug.eu
ORGANIZER;CN="CyberLand":MAILTO:no-reply@cyberland.ijug.eu
SUMMARY:CyberLand: {{ post.title }}
DESCRIPTION:CyberLand\n\n{{ post.title }}{% if post.speaker %} ({{ post.speaker | xml_escape }}{% if post.speaker2 %}, {{ post.speaker2 | xml_escape }}{% endif %}{% if post.speaker3 %}, {{ post.speaker3 | xml_escape }}{% endif %}){% endif %}\n\n{{ post.content | strip_html | normalize_whitespace | truncatewords: 50 }}
LOCATION:{{ post.location | replace: ",", "\," }}
{% include getDateWithStartAndEndTimeFromEvent.html event=post %}DTSTART;TZID={{ site.timezone }}:{{ dateWithStartTime | date: "%Y%m%dT%H%M00" }}
DTEND;TZID={{ site.timezone }}:{{ dateWithEndTime | date: "%Y%m%dT%H%M00" }}
DTSTAMP:{% assign offset = post.date | date: "%:::z" | times: 3600 %}{{ dateWithStartTime | date: "%s" | minus: offset | date: "%Y%m%dT%H%M00Z" }}
URL:{{ site.url }}{{ post.url }}
CLASS:PUBLIC
END:VEVENT
{% endif %}{% endfor %}END:VCALENDAR