Files
hexo-theme-butterfly/scripts/events/404.js
T
myw 51d36ef83a chore: v5.7.0
- Remove APlayer/Meting music player support
- Upgrade Artalk to 2.10.0 and add vote feature
- Cache plugins.yml to avoid re-rendering on every generate
- Add null safety for error_404 and highlight config
- Fix series date timestamp format
- Enhance shuoshuo mockPost compatibility and error handling
- Prevent scrollbar flicker when fancybox is open
- Update plugin versions (docsearch, katex, twikoo)
- Bump version to 5.7.0
2026-08-04 22:52:53 +08:00

22 lines
380 B
JavaScript

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