Adding an RSS feed to your hexo blog is child’s play. Thanks to the hexo-generator-feed plugin.

1) Installation

npm install hexo-generator-feed --save

2) Configuration

Open your hexo configuration file: _config.yml

and in the plugin section (just below your theme setting), add the following configuration

feed:
type: atom
path: atom.xml
limit: 10
  • type: You can choose between Atom and RSS2
  • path: the path to the rss feed
  • limit: the maximum number of posts to show

Pretty simple isn’t it ?

If you want to learn more about RSS feeds, check this comparison between Atom and RSS2