Hexo - 添加蜘蛛协议robots

source/robots.txt

可以参考这个

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

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

Sitemap: https://你的站点/sitemap.xml
Sitemap: https://你的站点/baidusitemap.xml

参考