Baidu Sitemap generator plugin for Hexo
JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore add tag and limit the catageries 3 Oct 22, 2014
.npmignore add tag and limit the catageries 3 Oct 22, 2014
LICENSE Update LICENSE Oct 13, 2014
README.md
baidusitemap.ejs could use separate url for baidusitemap May 4, 2018
index.js merge the baidusitemap instead of sitemap from _config Oct 21, 2015
package.json support hexo 3.0 Mar 12, 2015

README.md

Sitemap generator

Generate sitemap.

使用站图的初衷是为自己的博客添加站内搜索,如果想更好的发挥站图的作用,建议手动提交baidusitemap给百度.

Install

if your hexo version is 2.x.x, you should install as follow:

$ npm install hexo-generator-baidu-sitemap@0.0.8 --save

if version is 3.x.x, you should install as follow:

$ npm install hexo-generator-baidu-sitemap@0.1.1 --save

Update.

$ npm remove hexo-generator-baidu-sitemap
$ npm install hexo-generator-baidu-sitemap --save

Options

if your hexo version is 2.x.x, you can configure this plugin in _config.yml.

baidusitemap:
    path: baidusitemap.xml

if version is 3.x.x, you should configure this plugin in _config.yml.

baidusitemap:
path: baidusitemap.xml
  • path - Sitemap path. (Default: baidusitemap.xml)

##Errors

Maybe response is "hexo is not definded",then you should:

$ cd node_modules/hexo-generator-baidu-sitemap/
$ npm install