forked from TruthHun/BookStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
54 lines (54 loc) · 1.92 KB
/
404.html
File metadata and controls
54 lines (54 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="author" content="Minho" />
<link rel="shortcut icon" href="/favicon.ico">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{if .BookName}}文档不存在 - {{.BookName}}{{else}}页面不存在{{end}} - {{.SITE_NAME}}</title>
<style>
.container{
width: 800px;
max-width: 80%;
text-align: center;
margin:150px auto;
}
.err404{
font-size: 100px;margin-bottom: 15px;
}
a{color: #0e8c8c !important;text-decoration: none;}
.footer{
position: fixed;z-index: 99;bottom: 50px;width: 100%;left: 0px;text-align: center;
color: #888;
}
.button{font-size: 1.2em;}
</style>
</head>
<body>
{{if .BookName}}
<div class="container">
<div class="header">
<h3>章节不存在</h3>
</div>
<div class="body">
<div class="err404">404</div>
<a href="{{.BookLink}}" title="返回《{{.BookName}}》" class="button">返回《{{.BookName}}》</a><br />
<div class="footer">Powered by <a href="https://github.com/TruthHun/BookStack" target="_blank">BookStack</a></div>
</div>
</div>
{{else}}
<div class="container">
<div class="header">
<h3>Page Not Foud</h3>
</div>
<div class="body">
<div class="err404">404</div>
<a href="/" title="返回首页" class="button">返回首页</a><br />
<div class="footer">Powered by <a href="https://github.com/TruthHun/BookStack" target="_blank">BookStack</a></div>
</div>
</div>
{{end}}
</body>
</html>