Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mythsman committed Nov 2, 2023
1 parent 1f884a1 commit e4addc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ hexo.extend.console.register('douban', 'Generate pages from douban', options, fu
if (this.config.douban[type].path.startsWith("/")) {
this.config.douban[type].path = this.config.douban[type].path.substr(1)
}

hexo.extend.generator.register(type, function (locals) {
locals.douban_type = type
return require(`./lib/generator`).call(this, locals)
});
})

const self = this;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-douban",
"version": "2.2.5",
"version": "2.2.6",
"description": "Generate douban pages of books , movies and games for Hexo.",
"main": "index",
"scripts": {},
Expand Down

0 comments on commit e4addc3

Please sign in to comment.