1、安装插件。进入本地hexo目录,打开git bash。输入以下命令
npm install hexo-generator-feed
2、添加配置。在本地hexo根目录下的_config.yml文件中,添加以下配置。
# Extensions
## Plugins: http://hexo.io/plugins/
#RSS订阅
plugin:
- hexo-generator-feed
#Feed Atom
feed:
type: atom
path: atom.xml
limit: 20

3、添加主题配置,在主题目录下的_config.yml目录下,添加如下配置。
rss: /atom.xml

网友评论