-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
36 lines (36 loc) · 1.11 KB
/
404.html
File metadata and controls
36 lines (36 loc) · 1.11 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Page Not Found</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
color: #333;
max-width: 600px;
margin: 0 auto;
padding: 20px;
text-align: center;
}
</style>
<script>
// 将 .html 扩展名替换回 .md,并重定向到正确的页面
var path = window.location.pathname;
if (path.endsWith('.html')) {
var mdFile = path.slice(1).replace(/\.html$/, '.md');
if (mdFile !== 'README.md') {
mdFile = mdFile.replace('docs/', '');
}
window.location.href = '/?file=' + mdFile;
}
</script>
</head>
<body>
<h1>Page Not Found</h1>
<p>We're sorry, but the page you're looking for cannot be found.</p>
<p>Redirecting to the correct page...</p>
<p>If you're not redirected, <a href="/">click here to go to the homepage</a>.</p>
</body>
</html>