'use strict';

var assign = require('object-assign');

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

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

var assign = require('object-assign');

hexo.config.category_generator = assign({
  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'));
Allow users to set the per_page option to 0