Skip to content

Commit

Permalink
Merge pull request #1 from borisschapira/master
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Jun 3, 2015
2 parents 430b35e + 9c9dbfa commit 1d9121d
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.index_generator = assign({
per_page: hexo.config.per_page || 10
per_page: typeof hexo.config.per_page === "undefined" ? 10 : hexo.config.per_page
}, hexo.config.index_generator);

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

0 comments on commit 1d9121d

Please sign in to comment.