hexo-theme-stellar/scripts/generators/404.js

15 lines
312 B
JavaScript
Raw Normal View History

2021-02-19 23:33:19 +08:00
/**
* 404 v1 | https://github.com/xaoxuu/hexo-theme-stellar/
*/
hexo.extend.generator.register('404', function (locals) {
2024-01-14 16:42:20 +08:00
const { root } = hexo.theme.config
2021-02-19 23:33:19 +08:00
return {
2024-01-14 16:42:20 +08:00
path: root.error_page['404'],
layout: ['404'],
data: {
layout: '404',
menu_id: root.error_page.menu_id
}
2021-02-19 23:33:19 +08:00
}
2024-01-14 16:42:20 +08:00
})