如何给Hexo正确添加RSS订阅

安装feed插件

  1. 本地hexo目录下运行git bash here
  2. 输入指令npm install hexo-generator-feed
  3. 等待安装完成

添加配置文件

  1. 打开hexo目录下配置文件_config.yml,末尾添加以下配置

    # Extensions
    ## Plugins: http://hexo.io/plugins/
    #RSS订阅
    plugin:
    - hexo-generator-feed
    #Feed Atom
    feed:
    type: atom
    path: atom.xml
    limit: 20
    
  2. 打开主题配置文件_config.yml,搜索rss,添加配置

rss: /atom.xml

发布

hexo s

Knowledge is priceless, thanks for your support !