4 ms·
Somewhat off-topic, but my personal static-site blog has an RSS feed, auto-generated by the same build script that compiles the markdown to HTML via pandoc. I d
by Arnavion 5y ago
Somewhat off-topic, but my personal static-site blog has an RSS feed, auto-generated by the same build script that compiles the markdown to HTML via pandoc. I don't particularly care if people read the entire article in their feed reader instead of in a browser, so I want to include the full article content in the feed But it feels silly to have two copies of every article in the output, where one copy of each article is in one giant feed.xml file, so currently I only put the title and URL for each article in the feed.
~15 years ago I had solved this problem on an unrelated website by having the feed be the source of the content and have the feed transformed into (X)HTML by the browser automatically using XSLT. But I don't think that's in favor these days, especially since not all browsers support it.
What do other people with static-site blogs do?
- thaumasiotes 5y agoIs there a problem with the higher-quality feed other than that you feel silly for providing it?
- Arnavion 5y agoI'm fine with doing it if that's what everyone else does, but I'm just checking that there isn't a cleaner way.
- account42 5y agoTypically you don't include all past articles in the RSS/Atom feed document but only "recent" ones where what recent means varies from site to site depending how often they expect their users to query the feed and how big of a deal missing entries is. There is also an extension to provide past articles in separate feed doucments [0] that was linked in this discussion but I have no idea if that is supported in practice. [0] https://datatracker.ietf.org/doc/html/rfc5005 https://datatracker.ietf.org/doc/html/rfc5005
- SAI_Peregrinus 5y agoPersonally I hate when articles are in the feed in full. I'd much rather be able to open the articles I want to read in tabs in a browser, and skip past the ones I'm not interested in (marking them as read when I do so). I'd rather have a title, URL, and maybe a short summary in the RSS feed.
- Arnavion 5y agoThat is a function of your reader client, not the feed itself. Configure your reader to display the "summary" instead of the "content" (as Atom calls them) of each entry.