forked from ruby-conferences/ruby-conferences.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalendar.ics
31 lines (31 loc) · 1.21 KB
/
calendar.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
---
layout: null
---
BEGIN:VCALENDAR
VERSION:2.0
PRODID:https://www.javascriptconferences.org/
METHOD:PUBLISH
{% for event in site.data.conferences %}
BEGIN:VEVENT
UID:{{ event.start_date | date: "%Y%m%d" | append: event.name }}@javascriptconferences.org
SUMMARY:{{ event.name }}
LOCATION:{{ event.location | replace: ",", "\\," }}
DESCRIPTION:{% if event.twitter %}Twitter:\nhttps://twitter.com/{{ event.twitter }}\n{% endif %}{% if event.mastodon %}\nMastodon:\n{{ event.mastodon }}{% endif %}{% if event.video_link %}\nVideo Link:\n{{ event.video_link }}\n{% endif %}
CLASS:PUBLIC
URL:{{ event.url }}
DTSTART;VALUE=DATE:{{ event.start_date | date: "%Y%m%d" }}
DTEND;VALUE=DATE:{{ event.end_date | date: "%Y%m%d" | plus: 1 }}
END:VEVENT
{% if event.cfp_date %}
BEGIN:VEVENT
UID:{{ event.cfp_date | date: "%Y%m%d" | append: event.name }}[email protected]
SUMMARY:{{ event.name }} {{ event.cfp_phrase }}
LOCATION:{{ event.location | replace: ",", "\\," }}
CLASS:PUBLIC
URL:{% if event.cfp_link %}{{ event.cfp_link }}{% else %}{{ event.url }}{% endif %}
DTSTART;VALUE=DATE:{{ event.cfp_date | date: "%Y%m%d" }}
DTEND;VALUE=DATE:{{ event.cfp_date | date: "%Y%m%d" | plus: 1 }}
END:VEVENT
{% endif %}
{% endfor %}
END:VCALENDAR