forked from sec-deadlines/sec-deadlines.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeadlines-sec.ical
More file actions
20 lines (20 loc) · 1.34 KB
/
deadlines-sec.ical
File metadata and controls
20 lines (20 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
layout: null
---
BEGIN:VCALENDAR{% assign tyear = 'now' | date: '%Y' %}{% assign tmonth = 'now' | date: '%m' %}{% assign tprevyear = 'now' | date: '%Y' | minus: 1 %}
VERSION:2.0
PRODID:https://sec-deadlines.github.io
METHOD:PUBLISH{% assign conferences = site.data.conferences |
where_exp:"conf","conf.tags contains 'SEC'" %}{% for conf in conferences %}{% assign num_deadlines = conf.deadline.size %}{% assign range_end = conf.deadline.size | minus: 1 %}{% for i in (0..range_end) %}{% assign deadline = conf.deadline[i] | replace: '%y', tyear | replace: '%Y', tprevyear %}{% assign conf_id = conf.name | append: conf.year | append: '-' | append: i | slugify %}
BEGIN:VEVENT
UID:{{ conf_id }}@sec-deadlines.github.io
SUMMARY:{{conf.name}} {{conf.year}} Deadline{% if num_deadlines >= 2 %} ({{ i | plus: 1 }} / {{ num_deadlines }}){% endif %}
DESCRIPTION:Deadline for {{conf.name}} {{conf.year}} {{conf.date}} {{conf.place}}\n{{ conf.description }}\n{{conf.comment}}\n{{conf.link}}
URL:{{conf.link}}
LOCATION:{{conf.place}}
CLASS:PUBLIC
DTSTAMP:{{ "now" | date: "%Y%m%dT%H%M%s" }}Z
DTSTART;TZID={%if conf.timezone %}{{conf.timezone}}{% else %}Etc/GMT+12{% endif %}:{{ deadline | date: "%Y%m%dT%H%M"}}00
DTEND;TZID={%if conf.timezone %}{{conf.timezone}}{% else %}Etc/GMT+12{% endif %}:{{ deadline | date: "%Y%m%dT%H%M"}}59
END:VEVENT{% endfor %}{% endfor %}
END:VCALENDAR