add sitemap into hexo blog

install plugin for SEO sitemap

1
npm install hexo-generator-sitemap --save

optional for baidu search engine

1
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
4
sitemap:
path: sitemap.xml

url: https://search4fan.github.io

optional for baidu search engine sitemap

1
2
baidusitemap:
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