Hexo 开启 RSS

·57 字 · 约 1 分钟#前端#Hexo#RSS
安装 hexo-generator-feed 插件#
npm#

npm install hexo-generator-feed -d

yarn#

yarn add hexo-generator-feed

配置_config.[themes].yml#
增加导航栏菜单#
RSS: /atom.xml || fa fa-rss
参数配置#
feed:
    type: atom  # 类型为atom
    path: atom.xml # 访问路径
    limit: 20 # 分页
清除重启#

hexo clean && hexo generate

页面效果#

本文由 note.batype.com 导入。

相关文章