Skip to content

Commit

Permalink
Merge pull request #81 from curbengh/no-multi-assign
Browse files Browse the repository at this point in the history
style: no-multi-assign
  • Loading branch information
curbengh committed Nov 30, 2019
2 parents 0273434 + 59b3050 commit 2d47784
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@

const { extname } = require('path');

const config = hexo.config.sitemap = Object.assign({
hexo.config.sitemap = Object.assign({
path: 'sitemap.xml',
rel: false
}, hexo.config.sitemap);

const config = hexo.config.sitemap;

if (!extname(config.path)) {
config.path += '.xml';
}
Expand Down

0 comments on commit 2d47784

Please sign in to comment.