Added Comments RSS Feed

Inspired by this post, I added the comment feeds in RSS 2.0 format to this blog.

If you want to subscribe the latest comments, use this feed: http://home.wangjianshuo.com/comments.xml

I created a new index file with “Comments RSS” as name, and comments.xml as filename. This is the content of this template.

<?xml version=”1.0″ encoding=”<$MTPublishCharset$>”?>

<rss version=”2.0″>

<channel>

<title><$MTBlogName remove_html=”1″ encode_html=”1″$>: Comments</title>

<link><$MTBlogURL$></link>

<description>Latest comments for <$MTBlogName remove_html=”1″ encode_html=”1″$></description>

<language>en-us</language>

<lastBuildDate><MTComments lastn=”1″><$MTCommentDate language=”en” format=”%a, %d %b %Y %H:%M:%S”$> <$MTBlogTimezone no_colon=”1″$></MTComments></lastBuildDate>

<generator>http://www.movabletype.org/?v=<$MTVersion$></generator>

<docs>http://blogs.law.harvard.edu/tech/rss</docs>

<MTComments lastn=”20″ sort_order=”descend”>

<item>

<title>Comment on “<MTCommentEntry><$MTEntryTitle remove_html=”1″ encode_html=”1″$></MTCommentEntry>”</title>

<link><MTCommentEntry><$MTEntryPermalink$>#comments</MTCommentEntry></link>

<description><$MTCommentBody encode_html=”1″$> <p>- <$MTCommentAuthorLink show_email=”0″ encode_html=”1″$></p></description>

<guid isPermaLink=”false”>comment<$MTCommentID pad=”1″$>@<$MTBlogURL$></guid>

<pubDate><$MTCommentDate language=”en” format=”%a, %d %b %Y %H:%M:%S”$> <$MTBlogTimezone no_colon=”1″$></pubDate>

</item>

</MTComments>

</channel>

</rss>

2 thoughts on “Added Comments RSS Feed

Leave a Reply

Your email address will not be published. Required fields are marked *