mirror of https://github.com/jkjoy/sunpeiwen.git
11 lines
288 B
JavaScript
11 lines
288 B
JavaScript
/* global hexo */
|
|
|
|
'use strict';
|
|
|
|
hexo.config.index_generator = Object.assign({
|
|
per_page: typeof hexo.config.per_page === 'undefined' ? 10 : hexo.config.per_page,
|
|
order_by: '-date'
|
|
}, hexo.config.index_generator);
|
|
|
|
hexo.extend.generator.register('index', require('./lib/generator'));
|