-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
142 lines (142 loc) · 4.16 KB
/
index.html
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="color-scheme" content="light dark">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="一个 Markdown 静态博客站。">
<title>BHznJNs' Blog</title>
<link rel="shortcut icon" href="./dist/imgs/favicon.png" type="image/x-icon">
<link rel="stylesheet" href="./dist/style.min.css">
<meta name="google-site-verification" content="ElMW-j35zgO3DvJAbuU9gQHdwKF4f6Xf0u7nUVAhiyw"></meta>
<script src="./dist/index.min.js" type="module" defer></script>
<link rel="preload" href=".index/static_1" as="fetch">
<link rel="preload" href=".index/newest_1" as="fetch">
</head>
<body>
<script>
const darkModeMediaQuery = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)")
const darkModeSwitcher = () => {
const isDarkMode = darkModeMediaQuery.matches
document.body.classList.toggle("dark" , isDarkMode)
document.body.classList.toggle("light", !isDarkMode)
}
if (darkModeMediaQuery) {
darkModeMediaQuery.addListener(darkModeSwitcher)
darkModeSwitcher()
}
</script>
<search-box></search-box>
<fab-icon></fab-icon>
<nav>
<a
id="homepage"
class="icon-btn underline-side left"
href="./"
onclick="globalThis.__CurrentPage__=1"
>
<img src="./dist/imgs/homepage.svg" alt="主页">
<span class="underline-target">主页</span>
</a>
<span><button
id="search-btn"
class="icon-btn"
title="搜索"
>
<img
src="./dist/imgs/search.svg"
alt="搜索"
>
</button><a
id="rss-icon"
class="icon-btn"
href="./user/rss.xml"
title="RSS 订阅"
>
<img
src="./dist/imgs/rss.svg"
alt="RSS 订阅"
>
</a><span>
<span
id="light-btn"
class="icon-btn"
role="button"
tabindex="0"
title="亮色模式"
onclick="document.body.classList.remove('dark'); document.body.classList.add('light')"
>
<img
src="./dist/imgs/sun.svg"
alt="亮色模式图标"
>
</span>
<span
id="dark-btn"
class="icon-btn"
role="button"
tabindex="0"
title="黑暗模式"
onclick="document.body.classList.add('dark'); document.body.classList.remove('light')"
>
<img
src="./dist/imgs/moon.svg"
alt="黑暗模式图标"
>
</span>
</span></span>
</nav>
<noscript>
<link rel="stylesheet" href="./dist/noscript.min.css">
<main id="noscript-main">
<p>你的浏览器似乎禁用了 JavaScript,你可以点此<a href="pages/index.html">查看最新的文章</a>。</p>
</main>
</noscript>
<main id="script-main" data-is-root=true>
<header id="directory-description"></header>
<ul id="function-list">
<li
id="newest"
tabindex="0"
onclick="location.hash = 'newest/'"
>最新博文</li>
<li
id="previous-dir"
tabindex="0"
>../</li>
<li id="update-time" tabindex="0">
最后更新:<code></code>
</li>
</ul>
<table id="newest-header">
<thead><tr>
<th>名称</th>
<th>发布时间</th>
</tr></thead>
</table>
<table id="directory-header">
<thead><tr>
<th>名称</th>
<th>上次修改</th>
</tr></thead>
</table>
<ul id="article-list"></ul>
<paging-view></paging-view>
</main>
<div id="article-container">
<article-catalog></article-catalog>
<article></article>
</div>
<footer><p><span class="dim"><a href="user/count.html">字数统计</a> | <a href="pages/">静态目录</a> | Powered by <a href="https://github.com/BHznJNs/markdown-blog" target="_blank">MarkdownBlog</a></span></p></footer>
<script>window.addEventListener("load", () => {
const scripts = ["https://www.googletagmanager.com/gtag/js?id=G-NV45LQLRQW","user/external.js"]
for (const script of scripts) {
const scriptEl = document.createElement("script")
scriptEl.src = script
scriptEl.async = true
document.head.appendChild(scriptEl)
}
})</script>
</body>
</html>