Movable Type template for iCal
For reasons I'm not entirely sure of, I've put together a feed of this site in iCalendar format (as used most notably by Apple's iCal).
This is another one to be filed under "because I can", but having blog post summaries appear in the calendar is well, interesting. Taken a step further, iCal could become a simple news aggregation tool that gives a more natural view of blog updates in relation to eachother.
The iCalendar file, and the source code for the index template are available. iCal users can subscribe using the webcal:// protocol by using this link.
There's a few issues to be aware of if you feel like taking this further:
- Timezones
Timezones are hard-coded, as there's no support in MT to write out "GMT", or "Europe/London" as might be expected.
- Appointment length
All the 'appointments' are one-minute long.
- Line length
The summaries and descriptions tag as per the spec should wrap at 75 octets in length; however, I've not figured out a decent way to do this in MT. A plug-in might help here.
- MovableType support
The template requires MT 2.66 or higher (I think), as I used some of the new tags required for Atom support (in particular <MTIfNonEmpty> and <$MTEntryModifiedDate$>).