UNPKG
hexo-theme-butterfly
Version:
latest (5.5.4)
5.5.4
5.5.3
5.5.2
5.5.1
5.5.0
5.4.3
5.4.2
5.4.1
5.3.5
5.3.4
5.3.3
5.3.2
5.3.1
5.3.0
5.2.2
5.2.1
5.2.0
5.1.0
5.0.0
4.13.0
4.12.0
4.11.0
4.10.0
4.9.0
4.8.5
4.8.1
4.8.0
4.7.0
4.6.1
4.6.0
4.5.1
4.5.0
4.4.0
4.3.1
4.3.0
4.2.2
4.2.1
4.2.0
4.1.0
4.0.1
4.0.0
3.8.4
3.8.3
3.8.2
3.8.1
3.8.0
3.7.8
3.7.7
3.7.6
3.7.5
3.7.1
3.7.0
3.6.2
3.6.1
3.6.0
3.5.1
3.5.0
3.4.2
3.4.1
3.4.0
3.3.0
3.2.0
3.1.1
3.1.0
3.0.1
3.0.0
3.0.0-rc2
3.0.0-rc1
A Simple and Card UI Design theme for Hexo
butterfly.js.org
jerryc127/hexo-theme-butterfly
hexo-theme-butterfly
/
scripts
/
events
/
404.js
21 lines
(18 loc)
•
345 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/** * 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
,
comments
:
false
,
aside
:
false
} } })