Reader Mail: Getting an RSS Feed of Only Posts
This post's featured URL for sharing metadata is https://www.jvt.me/img/profile.jpg.
Earlier today I received an email from Robert van Bregt:
I like reading your posts and do this through a feed reader. You currently only have a 'firehose' feed for the homepage, with all content. I'd like to subscribe to an RSS or JSON feed for your /posts/ section only. Is that in the works?
The answer is "well yes, but actually no" - I knew it was a thing that was on my backlog, but I'd not yet got around to it. I had two issues on my backlog tracking this - RSS feeds broken on taxonomy pages and Expose RSS feed per content type that would solve this issue.
But then a couple of weeks ago, I raised Only have articles in the default RSS feed after seeing this comment from Mark Everitt:
I have the terrible feeling that since I added notes to my blog I've been spamming people via RSS. I need to split it out into multiple feeds...
— Dr Mark Everitt (@qubyte) November 14, 2019
This got me thinking that my RSS feed may be similar, and yep, it was an issue!
I hadn't got around to fixing it (largely because NaBloPoMo 2019 took a lot of my time this month) but as I've now had someone ask for it, I decided to sort it out.
It's now possible to subscribe to /posts/feed.xml
and that'll provide you a posts-only RSS feed. It's also made discoverable in the HTML so a well-formed feed reader should be able to discover it when reading /posts/
:
<link rel="alternate" type="application/rss+xml" href="/posts/feed.xml" title="Jamie Tanna | Software (Quality) Engineer" />
As part of this change, I've also taken advantage of Hugo's AlternativeOutputFormats
variable, which allows me to output all output types on a given page, which means that i.e. the iCalendar entry on an event page will be discoverable, too.
This also makes it possible for you to subscribe to a certain taxonomy i.e. /tags/blogumentation/
or /series/nablopomo-2019/
if you only care about a subset of my content.
One thought I did have when doing this was to update the main RSS feed, /feed.xml
, but I've decided against it as it'd break for folks who aren't expecting the change and would miss out on content in the firehose (a great way to refer to this, btw!) they want to see.
Thanks for the report Robert, it's nudged me to fixing it!