Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (45 sloc) 1.88 KB
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//{{ site.title }}//{{ page.title }}//EN
X-WR-CALNAME:TechSoc: {{ page.title }}
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VTIMEZONE
TZID:Europe/London
TZURL:http://tzurl.org/zoneinfo-outlook/Europe/London
X-LIC-LOCATION:Europe/London
BEGIN:DAYLIGHT
TZOFFSETFROM:+0000
TZOFFSETTO:+0100
TZNAME:BST
DTSTART:19700329T010000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0100
TZOFFSETTO:+0000
TZNAME:GMT
DTSTART:19701025T020000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE
{% assign _events = include.events | sort: "start_time" | reverse %}
{% for event in _events %}
{% if event.start_time and event.start_time != "TBA" %}
{% include scripts/event_category event=event %}
{% capture title %}{% if include.include_label and event_category_label_result %}[{{ event_category_label_result }}] {% endif %}{{ event.title }}{% endcapture %}
{% capture start_time %}{{ event.start_time | date: "%Y%m%dT%H%M%S" }}{% endcapture %}
{% capture end_time %}{{ event.end_time | date: "%Y%m%dT%H%M%S" }}{% endcapture %}
{% capture description %}{{ event.content }}{% for action in event.actions %}\n{{ action.label }}: {{ action.url }}{% endfor %}{% endcapture %}
BEGIN:VEVENT
UID:{{ title | slugify }}-{{ start_time }}@techsoc.io
DTSTART;TZID=Europe/London:{{ start_time }}
{% if event.end_time %}DTEND;TZID=Europe/London:{{ end_time }}{% endif %}
SUMMARY:{% include scripts/ical_escape text=title %}
{% if event.location %}LOCATION:{% include scripts/ical_escape text=event.location %}{% endif %}
DESCRIPTION:{% include scripts/ical_escape text=description %}
{% if event.facebook_id %}{% assign facebook_url = event.facebook_id | prepend: "https://www.facebook.com/events/" %}URL:{% include scripts/ical_escape text=facebook_url %}{% endif %}
END:VEVENT
{% endif %}
{% endfor %}
END:VCALENDAR