Created
September 27, 2013 08:39
-
-
Save woodworker/6725728 to your computer and use it in GitHub Desktop.
a jekyll template for icalendar file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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:[email protected] | |
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
i think layout none is now called null, try if this works for you
i use this for http://bephpug.de/calendar.ics - see https://github.com/berlinphp/berlinphp.github.com/blob/master/calendar.ics