18 points · by hugov · 18y ago · 22 comments
<item>
<title>Ask PG: Link to comments in RSS</title>
<link>http://news.ycombinator.com/item?id=112684</link>
<comments>http://news.ycombinator.com/item?id=112684</comments>
<description>
<a href="http://news.ycombinator.com/item?id=112684">comments</a>
</description>
</item> <item>
<title>Ask PG: Link to comments in RSS</title>
<link>http://news.ycombinator.com/item?id=112684</link>
<description><![CDATA[<a href="http://news.ycombinator.com/item?id=112684">Comments</a>]]></description>
</item> (def rss-stories (stories)
(tag (rss version "2.0")
(tag channel
(tag title (pr this-site*))
(tag link (pr site-url*))
(tag description (pr site-desc*))
(each s stories
(tag item
(let comurl (+ site-url* (item-url s))
(tag title (pr (eschtml (s 'title))))
(tag link (pr (if (blank (s 'url))
comurl
(eschtml (s 'url)))))
(tag comments (pr comurl))
(tag description
(pr "<![CDATA[")
(link "Comments" comurl)
(pr "]]>"))))))))I was using Google Reader, and there was no comments link, but have since switched to NetNewsWire (OS X) where everything works correctly. It doesn't look like it'll change.
Works fine with Google-Reader.
But it would be nice to see the submission text.