hexo添加RSS订阅按钮


  • 下载插件
npm install --save hexo-generator-feed
  • 配置Hexo的 {% label _config.yml %} 文件
# Extensions
plugins:
  hexo-generator-feed
#Feed Atom
feed:
  type: atom
  path: atom.xml
  limit: 20
  • hexo根目录下配置{% label _config.yml %}
# Extensions
plugins:
  hexo-generator-feed
  • 主题目录下配置文件{% label _config.yml %}添加
# RSS订阅
rss: /atom.xml
  • 主题目录下配置文件{% label _config.yml %}添加这样一行

image-20211226122118392

  • 生成部署即可
hexo g -d

💌lixiang117423@foxmail.com
💌lixiang117423@gmail.com


Author: 小蓝哥
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint policy. If reproduced, please indicate source 小蓝哥 !
  TOC