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

19 lines
300 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +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
}
}
})