0%

HEXO笔记④-Hexo博客NexT主题设置RSS订阅

安装 hexo-generator-feed 插件并开启 RSS 订阅

在项目根目录下安装 hexo-generator-feed

1
> npm install hexo-generator-feed --save

修改项目根目录的_config.yml,插件添加 hexo-generator-feed,设置 feed 属性

1
2
3
4
5
6
7
8
9
10
11
12
Plugins: hexo-generator-feed
# Feed Atom
feed:
type: atom
path: atom.xml
limit: 20
hub:
content:
content_limit: 140
content_limit_delim: " "
order_by: -date
icon: /images/favicon_200x200.png

修改主题根目录的_config.yml,添加 RSS 订阅入口

  • 修改social节点,添加一行启用 RSS 图标
1
2
3
social:
# 其他社交按钮
RSS: /atom.xml || fa fa-rss
  • 修改follow_me节点,开启 RSS 订阅入口
1
2
3
follow_me:
# 其他社交按钮
RSS: /atom.xml || fa fa-rss
-------------本文结束感谢您的阅读-------------