Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions events/feed.ics
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
layout: null
---
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Chi Hack Night//Events//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:Chi Hack Night Events
X-WR-TIMEZONE:America/Chicago
BEGIN:VTIMEZONE
TZID:America/Chicago
BEGIN:DAYLIGHT
TZOFFSETFROM:-0600
TZOFFSETTO:-0500
TZNAME:CDT
DTSTART:19700308T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0500
TZOFFSETTO:-0600
TZNAME:CST
DTSTART:19701101T020000
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
END:STANDARD
END:VTIMEZONE
{%- for post in site.categories['events'] %}
BEGIN:VEVENT
UID:event-{{ post.event_id | default: post.date | date: "%Y%m%d" }}@chihacknight.org
DTSTAMP:{{ site.time | date: "%Y%m%dT%H%M%S" }}
DTSTART;TZID=America/Chicago:{{ post.date | date: "%Y%m%dT%H%M%S" }}
DURATION:PT2H30M
SUMMARY:{{ post.title | replace: "\", "\\" | replace: ";", "\;" | replace: ",", "\," }}
{%- if post.description %}
DESCRIPTION:{{ post.description | strip_html | strip_newlines | replace: "\", "\\" | replace: ";", "\;" | replace: ",", "\," }}
{%- endif %}
{%- if post.layout == 'technexus_event' %}
LOCATION:TeamWorking\, 20 N Upper Wacker Dr Suite 1200\, Chicago\, IL
{%- elsif post.layout == 'icstars_event' or post.layout == 'icstars_event_nostream' %}
LOCATION:i.c.stars\, 750 N Orleans Suite 500\, Chicago\, IL
{%- elsif post.layout contains 'remote' %}
LOCATION:Online - Zoom
{%- elsif post.layout == 'event' %}
LOCATION:Braintree Office\, 222 W Merchandise Mart Plaza\, Chicago\, IL
{%- elsif post.layout == 'satellite_event' %}
LOCATION:Satellite Event
{%- endif %}
URL:{{ site.url }}{{ post.url }}
STATUS:CONFIRMED
END:VEVENT
{%- endfor %}
END:VCALENDAR
2 changes: 2 additions & 0 deletions events/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ <h1>

<p>Have a talk you'd like to give at Chi Hack Night? <a href='/speaker-submissions.html'>Learn more about speaker submissions »</a></p>

<p><i class='fa fa-calendar'></i> Subscribe to our events calendar: <a href='/events/feed.ics'>Add to Calendar</a></p>

{% assign upcoming_events = '' | split: '' %}
{% assign past_events = '' | split: '' %}
{% assign current_date = 'now' | date: '%s' %}
Expand Down