diff --git a/index.js b/index.js index c302ba5..33e2422 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ const { extname, join } = require('path'); -const config = hexo.config.feed = Object.assign({ +hexo.config.feed = Object.assign({ type: 'atom', limit: 20, hub: '', @@ -15,6 +15,8 @@ const config = hexo.config.feed = Object.assign({ template: '' }, hexo.config.feed); +const config = hexo.config.feed; + let type = config.type; let path = config.path; let template = config.template;