hexo/node_modules/hexo-theme-butterfly/scripts/events/404.js

19 lines
282 B
JavaScript

/**
* Butterfly
* 404 error page
*/
'use strict'
hexo.extend.generator.register('404', function (locals) {
if (!hexo.theme.config.error_404.enable) return
return {
path: '404.html',
layout: ['page'],
data: {
type: '404',
top_img: false
}
}
})