Exposed RSS
chriscoyier.net
chriscoyier.net
However, clicking it is horrible UX: a wall of text. Or even worse (shaking fist at Firefox), a download "Save as..." prompt.
So... <shameless self promotion> I made Feed.Style[0] to help people make it be a semi-presentable page by adding an XSLT stylesheet.</shame>
I have a couple of examples (of HN and high-ranking HNers natch ;) and found a fair number of bugs^H^H^H^H non-optimal choices in their feeds, probably because XML is not all that human-readable, even for devs.
Source [1] is MIT-licensed and is completely static, except for the examples, which are just an optional hack running on Cloudflare pages.
Feedback welcome!
As a side note, it seems like a number of your "after" examples do not load. HN hug, or something else?
Indeed, that was my greatest concern for adding a stylesheet to the RSS on my website. I tried to solve it by including a screenshot of the source tree :)
On my website, the RSS is announced through metadata only on the news page. Per the “Exposed RSS” statement, it should be linked from all pages? I wonder whether it really makes sense for someone to subscribe to a page without even checking it out on such a cursory level as to find the news page, though?
I just tried all of them now, and they did load. What is the exact error you are seeing? Just a blank page or ???
If you mean that the input box for "copy to clipboard" is empty, that's because the feed doesn't have a "self" link, which the stylesheet needs.
I tried it in Firefox and got an XML parsing error[1] instead. Again refreshed and it loaded fine. So it seems intermittent at best.
[1] Error follows:
XML Parsing Error: mismatched tag. Expected: </link>.
Location: https://www.feed.style/example.xml?feedurl=https%3A%2F%2Fnews.ycombinator.com%2Fshowrss
Line Number 6, Column 3:I'm a little surprised an RSS feed itself would be rate limited/protected though.
https://github.com/fazalmajid/temboz/blob/master/tembozapp/a...
failed to read the 'localstorage' property from 'window': access is denied for this document.