Hexo SEO 优化

Hexo SEO 优化

Hexo SEO 优化

添加站点地图

安装插件

1
2
npm install hexo-generator-sitemap --save
npm install hexo-generator-baidu-sitemap --save

配置

_config.yml
1
2
3
4
5
#hexo sitemap
sitemap:
path: sitemap.xml
baidusitemap:
path: bdmap.xml

添加 robots

站点 source 下添加 robots.txt

robots.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
User-agent: *
Allow: /
Allow: /archives/
Allow: /categories/
Allow: /tags/
Allow: /about/

Disallow: /vendors/
Disallow: /js/
Disallow: /css/
Disallow: /fonts/
Disallow: /vendors/
Disallow: /fancybox/

Sitemap: https://vitan.me/sitemap.xml
Sitemap: https://vitan.me/bdmap.xml

添加到 Google


  Hexo

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×