'use strict';

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

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

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

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

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

hexo.extend.generator.register('tag', require('./lib/generator'));
Allow users to set the per_page option to 0
Allow users to set the per_page option to 0
