hexo-theme-amane/includes/generators/categories.js

14 lines
346 B
JavaScript

/**
* Category list page generator
*/
module.exports = function (hexo) {
hexo.extend.generator.register('categories', function (locals) {
return {
path: 'categories/',
layout: ['categories'],
data: Object.assign({}, locals, {
__categories: true
})
};
});
}