使用站点地图为博客进行 SEO 优化。
所谓 SEO 优化呢,就是当用户在检索关键字时提高博客在搜索引擎中的排名。排名越靠前说明对 SEO 优化的越好,就越容易被点击到。
1. 安装生成站点地图插件
1 |
|
通过 hexo-generator-sitemap 生成站点地图的URL: http://localhost:4000/sitemap.xml。
通过 hexo-generator-baidu-sitemap 生成站点地图的URL:http://localhost:4000/baidusitemap.xml。
2. 添加站点地图
将站点地图文件的 URL 地址提交到搜索引擎进行收录即可。