Hexo使用攻略:(八)为Hexo添加RSS和Sitemap
添加RSS
- 用
npm安装插件:
|
|
- 在配置文件里引用插件。在
hexo/_config.yml添加代码:
|
|
- 在导航上添加RSS链接。打开
themes/light/_config.yml文件,rss:部分修改为rss: /atom.xml,然后在menu部分添加Rss: /atom.xml。完成后代码类似下面的效果:
|
|
添加Sitemap
和RSS一样,需要下载个插件。
- 安装插件:
|
|
- 引用插件,同样在
hexo/_config.yml中添加代码:
|
|
- 访问
/sitemap.xml就能看到站点地图了。