March 20, 2003

Updated RSS feed

For those who are interested, I’ve updated my full-text RSS 2.0 feed to include comments. To use this in Movable Type, open your template-editing screen. Click on “RSS 0.91 index”. Rename that to “RSS 2.0 index”. Replace the contents with this file. The output filename should still be “index.xml” unless you have a good reason to change it to something else. You may want to change lastn="10" to some other number–this shows the last 10 posts. The comments section is set off by blank lines, and can be tweaked.

This is based on the template provided by Mark Pilgrim at feeds.archive.org, but removes your e-mail address (which spambots might find) and adds the comments. It still validates.

[Later] Made a slight change to make the RSS feed friendly to foreign scripts: my template now uses the tag, which I believe is new to MT 2.6. For this to make a difference, you need to be using MT 2.6, and edit your mt.cfg file: de-comment the line containing PublishCharset and
set the appropriate charset (I’ve set mine to “utf-8”–unicode); also I think you need to de-comment the line NoHTMLEntities 1. This only matters if you use non-Roman script (Japanese, Cyrillic, etc).

[Later still] Fixed a few more minor things, including a link to extended entries (tip o’ the cap to David Nunez).