-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevents.txt
21 lines (21 loc) · 1011 Bytes
/
events.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
layout: null
permalink: events.ics
---
BEGIN:VCALENDAR
VERSION:2.0
PRODID:{{ site.url }}
METHOD:PUBLISH
{% for file in site.data.events %}
BEGIN:VEVENT{% assign event=file[1] %}
UID:{{ file[0] }}@{{ site.url | replace: 'https://', '' | replace: 'http://', ''}}
DTSTAMP;TZID={{ site.timezone | default: '/US/Pacific' }}:{{ site.time | date: '%Y%m%dT%H%M%S' }}
ORGANIZER:CN={{ event.organizer.name | default: site.author }}{% if event.organizer.email %}:MAILTO:{{ event.organizer.email }}{% endif %}
DTSTART;TZID{{ site.timezone | default: '/US/Pacific' }}:{{ event.startDate | date: '%Y%m%dT%H%M%S' }}
DTEND;TZID={{ site.timezone | default: '/US/Pacific' }}:{{ event.endDate | date: '%Y%m%dT%H%M%S' }}
SUMMARY:{{ event.name }}
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:{{ event.description | strip_newlines }}
LOCATION:{{ event.location.streetAddress }} {{ event.location.addressLocality}}, {{ event.location.addressRegion }}{% if event.url %}
URL:{{ event.url }}{% endif %}
END:VEVENT{% endfor %}
END:VCALENDAR