Skip to content

Commit

Permalink
Allow users to set the per_page option to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Schapira committed Jun 3, 2015
1 parent 8b6328e commit 66a39bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
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 66a39bb

Please sign in to comment.