Skip to content

Instantly share code, notes, and snippets.

@paultibbetts
Forked from woodworker/jekyll.ics
Created September 22, 2016 16:09
Show Gist options
  • Save paultibbetts/28a5966c129cfd06315597e593f8df63 to your computer and use it in GitHub Desktop.
Save paultibbetts/28a5966c129cfd06315597e593f8df63 to your computer and use it in GitHub Desktop.
a jekyll template for icalendar file
---
layout: none
---
BEGIN:VCALENDAR
VERSION:2.0
PRODID:http://www.example.com/
METHOD:PUBLISH
{% for post in site.posts limit:10 %}BEGIN:VEVENT
UID:{{ post.date | date: "%Y%m%d" }}@example.com
ORGANIZER;CN="Organizer Name":MAILTO:organizer@example.org
LOCATION:The Adress of the example
SUMMARY:{{ post.title }}
CLASS:PUBLIC
DTSTART:{{ post.date | date: "%Y%m%d" }}T170000Z
DTEND:{{ post.date | date: "%Y%m%d" }}T190000Z
DTSTAMP:{{ post.date | date: "%Y%m%d" }}T170000Z
END:VEVENT{% endfor %}
END:VCALENDAR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment