vue-carousel-3d
Version:
Beautiful, flexible and touch supported 3D Carousel for Vue.js
21 lines (16 loc) • 425 B
JavaScript
;
const { Pattern } = require('hexo-util');
exports.process = function(file) {
if (file.type === 'delete') {
file.box.config = {};
return;
}
return file.render().then(result => {
file.box.config = result;
this.log.debug('Theme config loaded.');
}).catch(err => {
this.log.error('Theme config load failed.');
throw err;
});
};
exports.pattern = new Pattern(/^_config\.\w+$/);