Adding an RSS feed

Posted on 6th January 2020

One of the essential things any good blog must have is an RSS feed. I know this because I've been using feed readers like Feedly to keep up to date with some of my favourite websites and authors, and any site I came across that I wanted to follow that didn't have one was soon ejected from my tiny pathetic memory.

As I used the starter kit to make this Gatsby site, it didn't come with an RSS feed, but fortunately installing the relevant plugins and getting it up and running was a piece of 🍰, the official Gatsy docs on adding an RSS feed had 90% of the information I needed.

That last 10% was the ability to filter out draft posts from the feed, which I'd already done previously - see my Day 4 post - so I could just copy the logic into the allMarkdownRemark part of my graphql query.

sort: { order: DESC, fields: [frontmatter___date] },
filter: {frontmatter: {draft: {ne: true}}}
) {

And that's it! If you want to follow along with the progress of this site, you can subscribe to my feed, here's the link -

Enjoyed this post? Feel free to share it with your audience using the links below:

Don't see your favourite social network on the list? Feel free to let me know and I'll get it added.


©2022 Pursuit of Loot. All rights reserved.