Volantis主题并没有自带rss订阅信息,所以根据网上找到的一些Hexo相关内容记录以下Hexo怎么添加rss订阅。

添加步骤

  1. 添加插件 hexo-generator-feed ,在博客目录执行

    1
    npm install --save hexo-generator-feed
  2. _config.yml 添加

    _config.yml
    1
    2
    3
    ## Plugins: https://hexo.io/plugins/
    Plugins:
    hexo-generator-feed
  3. _config.yml_config.volantis.yml 添加

    _config.volantis.yml
    1
    2
    3
    4
    5
    6
    7
    Plugins:
    ...
    # rss
    feed:
    type: atom
    path: atom.xml
    limit: 20
    _config.yml
    1
    2
    3
    4
    5
    # rss
    feed:
    type: atom
    path: atom.xml
    limit: 20
  4. 应用生成的 /atom.xml 在对应位置即可

问题

使用 hexo g 进行预览的时候会发现,生成的 xml 文件在chrome浏览器的中文是乱码的,但推送到服务器的部署时会正常显示。
目前并没有解决的办法,详见链接 RSS生成的atom.xml乱码问题