Add an RSS feed to a Jekyll blog
An RSS or Atom feed gives people a way to follow a blog without relying on social media or email. On a Jekyll site, the jekyll-feed plugin does most of the work.
Add the gem to your site’s Gemfile:
gem 'jekyll-feed'
Then enable it in _config.yml:
plugins:
- jekyll-feed
If you use Jekyll earlier than 3.5.0, use the gems key instead of plugins.
After the next build, the plugin generates an Atom feed at /feed.xml. Open that URL on your local site to make sure it contains your posts before publishing.
That is enough for the feed itself. You may also want to link to /feed.xml somewhere visible so readers can actually find it.
Enjoyed reading this?
If you found this article helpful, consider supporting my writing. Every little bit helps keep this blog going.
Related articles
- The HTTP Status Codes I Actually Check
A practical guide to common HTTP response codes, redirects, client and server errors, and the headers that explain them.
- What Makes a Website a Progressive Web App?
A practical look at service workers, web app manifests, installation, and the cases where a Progressive Web App is worth building.
- What a Static Site Generator Actually Does
A static site generator combines content and templates before deployment, producing HTML files that a web server can deliver directly.