Skip to content

Commit

Permalink
Merge 0c0f6b0 into dd558c6
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Nov 19, 2019
2 parents dd558c6 + 0c0f6b0 commit 3f00c73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const { extname } = require('path');

const config = hexo.config.feed = Object.assign({
type: 'atom',
type: ['atom'],
limit: 20,
hub: '',
content: true,
Expand Down Expand Up @@ -59,7 +59,7 @@ for (const feedType of type) {
});
}

if (typeof config.autodiscovery === 'undefined') config.autodiscovery = true;
if (typeof config.autodiscovery !== 'boolean') config.autodiscovery = true;

if (config.autodiscovery === true) {
hexo.extend.filter.register('after_render:html', require('./lib/autodiscovery'));
Expand Down

0 comments on commit 3f00c73

Please sign in to comment.