Skip to content

Commit

Permalink
Merge pull request #2 from borisschapira/master
Browse files Browse the repository at this point in the history
Allow users to set the per_page option to 0
  • Loading branch information
漩涡 committed Jun 4, 2015
2 parents 8b6328e + 66a39bb commit 330c3cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -3,7 +3,7 @@
var assign = require('object-assign');

hexo.config.category_generator = assign({
per_page: hexo.config.per_page || 10
per_page: typeof hexo.config.per_page === "undefined" ? 10 : hexo.config.per_page
}, hexo.config.category_generator);

hexo.extend.generator.register('category', require('./lib/generator'));

0 comments on commit 330c3cb

Please sign in to comment.