在blog中添加rss信息源


使用hexo-generator-feed创建rss信息源

项目地址

1
https://github.com/hexojs/hexo-generator-feed

部署

1
2
在blog项目中
npm install hexo-generator-feed --save
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
在_config.yml文件中添加如下配置:

feed:
enable: true
type:
- atom
- rss2
path:
- atom.xml
- rss2.xml
limit: 20
hub:
content:
content_limit: 140
content_limit_delim: ' '
order_by: -date
icon: icon.png
autodiscovery: true
template: