为hexo添加RSS订阅
安装hexo-generator-feed
在hexo根目录下执行下列命令
npm install hexo-generator-feed --save
然后在_config.yml
中配置如下:
feed:
type: atom
path: atom.xml
limit: 20
hub:
content:
content_limit: 140
content_limit_delim: ' '
order_by: -date
icon: icon.png
我用的主题是hexo-theme-melody,在主题对应的_config.yml
中的social下加入
social:
rss fa: /atom.xml
然后hexo g
重新渲染,hexo s
重启项目,就可以在首页看到RSS按钮了。
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 神奇海螺🐚!
评论