hexo-theme-stellar/scripts/generators/categories.js

11 lines
260 B
JavaScript
Raw Normal View History

2021-02-19 23:33:19 +08:00
/**
* categories v1 | https://github.com/xaoxuu/hexo-theme-stellar/
*/
hexo.extend.generator.register('categories', function (locals) {
return {
path: hexo.config.category_dir + '/index.html',
data: locals.posts,
layout: ['categories']
}
});