diff --git a/index.js b/index.js index ca52d28..ed75479 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ const { extname } = require('path'); const config = hexo.config.feed = Object.assign({ - type: 'atom', + type: ['atom'], limit: 20, hub: '', content: true, @@ -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'));