File tree 9 files changed +49
-2
lines changed
9 files changed +49
-2
lines changed Original file line number Diff line number Diff line change @@ -99,3 +99,4 @@ comment:
99
99
reload : Click to reload
100
100
loading : Loading comment plugin
101
101
config_error : " Please fill in the required configuration items for %s comment plugin"
102
+ page_not_found : Page Not Found
Original file line number Diff line number Diff line change @@ -99,3 +99,4 @@ comment:
99
99
reload : 点击重新加载
100
100
loading : 正在加载评论插件
101
101
config_error : " 请完整填写 %s 评论插件必需的配置项"
102
+ page_not_found : 页面找不到
Original file line number Diff line number Diff line change @@ -98,4 +98,5 @@ comment:
98
98
fail_tip : 評論插件加載失敗
99
99
reload : 點擊重新加載
100
100
loading : 正在加載評論插件
101
- config_error : " 請完整填寫 %s 評論插件必需的配置項"
101
+ config_error : " 請完整填寫 %s 評論外掛程式必需的設定項"
102
+ page_not_found : 頁面缺失
Original file line number Diff line number Diff line change
1
+ <div class =" fade-in-down-animation" >
2
+ <div class =" error-404-container border-box" >
3
+ <div class =" text-1 border-box flex-center" >404</div >
4
+ <div class =" text-2 border-box flex-center" >
5
+ <% - __ (' page_not_found' ) %>
6
+ </div >
7
+ </div >
8
+ </div >
Original file line number Diff line number Diff line change 43
43
44
44
< %- partial (' _partial/tagcloud' ) % >
45
45
46
+ < % } else if (page .type === ' 404' ) { % >
47
+
48
+ < %- partial (' 404' ) % >
49
+
46
50
< % } else { % >
47
51
48
52
< %- partial (' page-template' ) % >
Original file line number Diff line number Diff line change
1
+ /* global hexo */
2
+
3
+ 'use strict'
4
+
5
+ hexo . extend . generator . register ( 'generate-404-page' , function ( ) {
6
+ return {
7
+ path : '404.html' ,
8
+ layout : [ 'page' ] ,
9
+ data : {
10
+ type : '404' ,
11
+ title : '404'
12
+ }
13
+ }
14
+ } )
Original file line number Diff line number Diff line change
1
+ .error-404-container {
2
+ .text-1 {
3
+ width 100%
4
+ height 10rem
5
+ color var (-- text - color-3 )
6
+ font-weight 600
7
+ font-size 10rem
8
+ }
9
+
10
+ .text-2 {
11
+ width 100%
12
+ height 3rem
13
+ color var (-- text - color-4 )
14
+ font-size 2rem
15
+ letter-spacing 1px
16
+ }
17
+ }
File renamed without changes.
Original file line number Diff line number Diff line change 17
17
@import "layout/_partial/archive-list.styl"
18
18
@import "layout/_partial/footer.styl"
19
19
@import "layout/_partial/paginator.styl"
20
- @import "layout/_partial/page-template.styl"
21
20
@import "layout/_partial/first-screen.styl"
22
21
@import "layout/_partial/image-mask.styl"
23
22
@import "layout/category-list.styl"
28
27
@import "layout/article-content.styl"
29
28
@import "layout/category-content.styl"
30
29
@import "layout/tag-content.styl"
30
+ @import "layout/404.styl"
31
+ @import "layout/page-template.styl"
31
32
@import "layout/_partial/tagcloud.styl"
32
33
@import "layout/_partial/common/empty-content.styl"
33
34
@import "layout/_partial/post/post-share.styl"
You can’t perform that action at this time.
0 commit comments