hexo/node_modules/hexo-generator-index/index.js

11 lines
298 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
/* 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'));