-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path404.html
More file actions
59 lines (59 loc) · 2.72 KB
/
Copy path404.html
File metadata and controls
59 lines (59 loc) · 2.72 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
55
56
57
58
59
<!doctype html>
<html lang="zh-CN" data-theme="dark">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>页面未找到 | HaoXiang Huang</title>
<meta name="description" content="没有找到请求的 HaoXiang Huang 页面,请返回主页继续浏览。">
<meta name="robots" content="noindex">
<meta name="theme-color" content="#080a0d">
<script>
(function () {
var language = "zh";
var theme = "dark";
try {
language = window.localStorage.getItem("language") === "en" ? "en" : "zh";
var storedTheme = window.localStorage.getItem("theme");
theme = storedTheme === "light" || storedTheme === "dark" ? storedTheme : "dark";
} catch (error) {
// Keep the complete Chinese/dark fallback when storage is unavailable.
}
document.documentElement.lang = language === "en" ? "en" : "zh-CN";
document.documentElement.dataset.language = language;
document.documentElement.dataset.theme = theme;
var themeMeta = document.querySelector('meta[name="theme-color"]');
if (themeMeta) {
themeMeta.setAttribute("content", theme === "light" ? "#fafbfc" : "#080a0d");
}
}());
</script>
<link rel="icon" type="image/png" href="https://nextweb4.github.io/images/favicon.png">
<link rel="stylesheet" href="https://nextweb4.github.io/css/site.css?v=20260726-5">
</head>
<body class="not-found">
<main class="not-found-panel" aria-labelledby="not-found-title">
<p class="eyebrow" data-404-copy="eyebrow">404 / 页面未找到</p>
<h1 id="not-found-title" data-404-copy="title">这一页不在当前路径里。</h1>
<p data-404-copy="message">链接可能已经移动或失效。返回主页,继续查看博客、GitHub 项目与公开联系渠道。</p>
<a class="button button-primary" href="https://nextweb4.github.io/" data-404-copy="action">返回主页</a>
</main>
<script>
(function () {
if (document.documentElement.dataset.language !== "en") {
return;
}
var copy = {
eyebrow: "404 / Page not found",
title: "This page is not on the current path.",
message: "The link may have moved or expired. Return home to continue with the journal, GitHub projects, and public contact channels.",
action: "Back home"
};
document.title = "Page not found | HaoXiang Huang";
document.querySelector('meta[name="description"]').content = "The requested HaoXiang Huang page was not found. Return home to continue browsing.";
document.querySelectorAll("[data-404-copy]").forEach(function (element) {
element.textContent = copy[element.getAttribute("data-404-copy")];
});
}());
</script>
</body>
</html>