-
Notifications
You must be signed in to change notification settings - Fork 0
/
events.ics
29 lines (29 loc) · 1.49 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
---
layout: none
---
BEGIN:VCALENDAR{% assign timezone = "Europe/Vienna" %}
VERSION:2.0
PRODID:{{ site.url }}
X-PUBLISHED-TTL:PT1H
X-WR-CALNAME:{{site.title}}
X-WR-TIMEZONE:{{timezone}}
METHOD:PUBLISH{% for post in site.plauscherl %}{% if post.startDateIso8601 %}{% assign starttime = post.timestring | replace: ":","" %}{% assign endtime = starttime | plus:400 %}{% assign location_fmt = post.location.address | append: ', ' | append: post.location.zip | append: ' ' | append: post.location.city %}
BEGIN:VEVENT
SEQUENCE:{{site.time | date: "%m%d%H%M%S"}}
UID:{{ post.startDateIso8601 | date: "%Y%m%d" }}-{{post.name}}@{{ site.url | replace: "http://","" }}
ORGANIZER;CN="{{ site.title }}":
MAILTO:{{ site.email }}
LOCATION:{{location_fmt | replace: ',':" "}} Austria{% if post.location.oldmap %}
GEO:{{post.location.oldmap.lat}};{{post.location.oldmap.lng}}{% endif %}
SUMMARY:{{ post.title }}
CLASS:PUBLIC
DTSTART;TZID={{timezone}}:{{ post.startDateIso8601 | date: "%Y%m%d" }}T{{starttime}}00
DTEND;TZID={{timezone}}:{{ post.startDateIso8601 | date: "%Y%m%d" }}T{{endtime}}00
DTSTAMP:{{ post.startDateIso8601 | date: "%Y%m%dT%H%M%S" }}Z
URL:{{ post.url | prepend: site.baseurl | prepend: site.url }}
DESCRIPTION:URL: {{ post.url | prepend: site.baseurl | prepend: site.url }}\n
\nLocation: {{post.location.name}} {{location_fmt}}\n
\nSpeakers:\n{% for speaker in post.speakers %}{{speaker.name}}
\n{{speaker.talk}}{% unless forloop.last %}\n\n{% endunless %}{% endfor %}
END:VEVENT{% endif %}{% endfor %}
END:VCALENDAR