安装插件

npm install hexo-generator-feed --save

配置

在hexo根目录下的_config.yml中添加插件引用:

1
2
3
4
5
6
7
8
9
10
# Extensions
## Plugins: http://hexo.io/plugins/
#RSS订阅
plugin:
- hexo-generator-feed
#Feed Atom
feed:
type: atom
path: atom.xml
limit: 20

然后检查一下主题目录下的_config.yml中,RSS 的目录导向是否和上述代码中的 path 一致:

1
2
3
- page: rss
directory: atom.xml
icon: fa-rss

部署上线:

1
2
hexo clean
hexo d -g

验证

perfect!