一、步驟
1、安裝插件。進入本地hexo目錄,打開Git bash。輸入以下命令
npm install hexo-generator-feed
- 1
- 2
- 1
- 2
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
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
3、添加主題配置,在主題目錄下的_config.yml目錄下,添加如下配置。
rss: /atom.xml
- 1
- 1
轉載自:點擊打開鏈接