Repository navigation
Expand file tree
/
Copy pathevents.ics
More file actions
42 lines (42 loc) · 1.92 KB
/
Copy pathevents.ics
File metadata and controls
42 lines (42 loc) · 1.92 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
42
---
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.coordinates %}
GEO:{{post.location.coordinates.lat}};{{post.location.coordinates.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
{%- if post.talks and post.talks != empty -%}
{%- for talk in post.talks -%}
{%- for speaker in talk.speakers -%}
{{ speaker.name }}{%- unless forloop.last -%}, {% endunless -%}
{%- endfor -%}\n{{ talk.title }}
{%- unless forloop.last -%}\n\n{% endunless -%}
{%- endfor -%}
{%- else -%}
{%- assign speaker_list = post.speakers | default: post.speaker -%}
{%- for speaker in speaker_list -%}
{{speaker.name}}\n{{speaker.talk}}
{%- unless forloop.last -%}\n\n{% endunless -%}
{%- endfor -%}
{%- endif %}
END:VEVENT{% endif %}{% endfor %}
END:VCALENDAR