blog/themes/fluid/scripts/helpers/engine.js

10 lines
221 B
JavaScript
Raw Normal View History

2024-11-16 11:34:10 +08:00
/* global hexo */
'use strict';
hexo.extend.helper.register('inject_point', function(point) {
return this.theme.injects[point]
.map(item => this.partial(item.layout, item.locals, item.options))
.join('');
});