How to add an RSS feed to a Jekyll blog

Add this line to your site’s Gemfile:

gem 'jekyll-feed'

And then add this line to your site’s _config.yml:

plugins:
  - jekyll-feed

If you are using Jekyll < 3.5.0 use the gems key instead of plugins. The plugin will automatically generate an Atom feed at /feed.xml.