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

15 lines
327 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 17:21:19 +08:00
const { site_tree } = hexo.theme.config
2021-02-19 23:33:19 +08:00
return {
2024-01-14 17:21:19 +08:00
path: site_tree.error_page['404'],
2024-01-14 16:42:20 +08:00
layout: ['404'],
data: {
layout: '404',
2024-01-14 17:21:19 +08:00
menu_id: site_tree.error_page.menu_id
2024-01-14 16:42:20 +08:00
}
2021-02-19 23:33:19 +08:00
}
2024-01-14 16:42:20 +08:00
})