mirror of https://github.com/jkjoy/sunpeiwen.git
13 lines
312 B
JavaScript
13 lines
312 B
JavaScript
var merge = require('utils-merge');
|
|
var pathFn = require('path');
|
|
|
|
var config = hexo.config.baidusitemap = merge({
|
|
path: 'baidusitemap.xml'
|
|
}, hexo.config.baidusitemap);
|
|
|
|
if (!pathFn.extname(config.path)){
|
|
config.path += '.xml';
|
|
}
|
|
|
|
hexo.extend.generator.register('baidusitemap', require('./lib/generator'));
|