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

19 lines
282 B
JavaScript
Raw Normal View History

2023-09-25 15:58:56 +08:00
/**
* 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
}
}
})