hexo/node_modules/hexo-generator-baidu-sitemap/index.js

13 lines
324 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
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'));