14 lines
317 B
JavaScript
14 lines
317 B
JavaScript
|
/**
|
||
|
* Tag list page generator
|
||
|
*/
|
||
|
module.exports = function (hexo) {
|
||
|
hexo.extend.generator.register('tags', function (locals) {
|
||
|
return {
|
||
|
path: 'tags/',
|
||
|
layout: ['tags'],
|
||
|
data: Object.assign({}, locals, {
|
||
|
__tags: true
|
||
|
})
|
||
|
};
|
||
|
});
|
||
|
}
|