install plugin for SEO sitemap
1 | npm install hexo-generator-sitemap --save |
optional for baidu search engine1
npm install hexo-generator-baidu-sitemap --save
change configuration file in _config.yml
add following codes into _config.yml
file and change the value of url, should be like http://yoursite.com
1
2
3
4sitemap:
path: sitemap.xml
url: https://search4fan.github.io
optional for baidu search engine sitemap1
2baidusitemap:
path: baidusitemap.xml
check with public folder
after hexo g
, the sitemap.xml
or baidusitemap.xml
should be found under public
folder
more on http://searchfor.space