Reader Mail: Getting an RSS Feed of Only Posts

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:

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!

Written by Jamie Tanna's profile image Jamie Tanna on , and last updated on .

Content for this article is shared under the terms of the Creative Commons Attribution Non Commercial Share Alike 4.0 International, and code is shared under the Apache License 2.0. #reader-mail #hugo.

This post was filed under articles.

Interactions with this post

Interactions with this post

Below you can find the interactions that this page has had using WebMention.

Have you written a response to this post? Let me know the URL:

Do you not have a website set up with WebMention capabilities? You can use Comment Parade.