-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
246 lines (217 loc) · 9.21 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<!DOCTYPE html>
<html lang="en" dir="auto">
<head><meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Blog</title>
<meta name="keywords" content="" />
<meta name="description" content="">
<meta name="author" content="">
<link rel="canonical" href="https://chenyhd.github.io/blog/" />
<link href="https://chenyhd.github.io/blog/assets/css/stylesheet.min.1ace6398e34c6bef28526a6ce8076fe3775484964f3b77b2bfb05bfcc4797ec8.css" integrity="sha256-Gs5jmONMa+8oUmps6Adv43dUhJZPO3eyv7Bb/MR5fsg=" rel="preload stylesheet"
as="style">
<link rel="manifest" href="https://chenyhd.github.io/blog/site.webmanifest">
<link rel="icon" href="https://chenyhd.github.io/blog/favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="https://chenyhd.github.io/blog/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://chenyhd.github.io/blog/favicon-32x32.png">
<link rel="apple-touch-icon" href="https://chenyhd.github.io/blog/apple-touch-icon.png">
<link rel="mask-icon" href="https://chenyhd.github.io/blog/safari-pinned-tab.svg">
<meta name="theme-color" content="#2e2e33">
<meta name="msapplication-TileColor" content="#2e2e33">
<meta name="generator" content="Hugo 0.92.2" />
<link rel="alternate" type="application/rss+xml" href="https://chenyhd.github.io/blog/index.xml">
</head>
<body class="list home" id="top">
<script>
if (localStorage.getItem("pref-theme") === "dark") {
document.body.classList.add('dark');
} else if (localStorage.getItem("pref-theme") === "light") {
document.body.classList.remove('dark')
} else if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
document.body.classList.add('dark');
}
</script>
<noscript>
<style type="text/css">
.theme-toggle,
.top-link {
display: none;
}
</style>
</noscript>
<header class="header">
<nav class="nav">
<div class="logo">
<a href="https://chenyhd.github.io/blog" accesskey="h">Blog</a>
<span class="logo-switches">
<span class="theme-toggle">
<a id="theme-toggle" accesskey="t">
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
<svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
</a>
</span>
</span>
</div>
<ul class="menu" id="menu" onscroll="menu_on_scroll()"></ul>
</nav>
</header>
<main class="main">
<article class="first-entry home-info">
<header class="entry-header">
<h2>Hi there 👋</h2>
</header>
<section class="entry-content">
<p>如果自由能像空气</p>
</section>
<footer class="entry-footer"><div class="social-icons"></div>
</footer>
</article>
<article class="post-entry">
<header class="entry-header">
<h2>
Ubuntu 开发环境
</h2>
</header>
<section class="entry-content">
<p>构建 Ubuntu 开发环境所需要的软件和设置...</p>
</section>
<footer class="entry-footer">May 28, 2022
</footer>
<a class="entry-link" aria-label="post link to Ubuntu 开发环境" href="https://chenyhd.github.io/blog/posts/ubuntu-%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83/"></a>
</article>
<article class="post-entry">
<header class="entry-header">
<h2>
双系统连接同一蓝牙设备, Windows 10, Ubuntu 21.10
</h2>
</header>
<section class="entry-content">
<p>解决切换系统时需要,重新移除配对的问题...</p>
</section>
<footer class="entry-footer">May 22, 2022
</footer>
<a class="entry-link" aria-label="post link to 双系统连接同一蓝牙设备, Windows 10, Ubuntu 21.10" href="https://chenyhd.github.io/blog/posts/%E5%8F%8C%E7%B3%BB%E7%BB%9F%E8%BF%9E%E6%8E%A5%E5%90%8C%E4%B8%80%E8%93%9D%E7%89%99%E8%AE%BE%E5%A4%87/"></a>
</article>
<article class="post-entry">
<header class="entry-header">
<h2>
Java 发送日志到 Kafka, ELK
</h2>
</header>
<section class="entry-content">
<p>Springboot 将日至发送到 Kafka, 再存到 ELK 中...</p>
</section>
<footer class="entry-footer">March 6, 2022
</footer>
<a class="entry-link" aria-label="post link to Java 发送日志到 Kafka, ELK" href="https://chenyhd.github.io/blog/posts/java-%E5%8F%91%E9%80%81%E6%97%A5%E5%BF%97%E5%88%B0-kafka-elk/"></a>
</article>
<article class="post-entry">
<header class="entry-header">
<h2>
实用软件收录
</h2>
</header>
<section class="entry-content">
<p>偶尔使用的软件...</p>
</section>
<footer class="entry-footer">October 17, 2021
</footer>
<a class="entry-link" aria-label="post link to 实用软件收录" href="https://chenyhd.github.io/blog/posts/%E5%AE%9E%E7%94%A8%E8%BD%AF%E4%BB%B6%E6%94%B6%E5%BD%95/"></a>
</article>
<article class="post-entry">
<header class="entry-header">
<h2>
《你干嘛在乎别人怎么想?》
</h2>
</header>
<section class="entry-content">
<p>“天哪!”她说,“他们一定把你逼苦了!”...</p>
</section>
<footer class="entry-footer">December 23, 2020
</footer>
<a class="entry-link" aria-label="post link to 《你干嘛在乎别人怎么想?》" href="https://chenyhd.github.io/blog/posts/%E4%BD%A0%E5%B9%B2%E5%98%9B%E5%9C%A8%E4%B9%8E%E5%88%AB%E4%BA%BA%E6%80%8E%E4%B9%88%E6%83%B3/"></a>
</article>
<article class="post-entry">
<header class="entry-header">
<h2>
报考驾照遇到的坑
</h2>
</header>
<section class="entry-content">
<p>用信誉很容易解决的事情非要选择当无赖...</p>
</section>
<footer class="entry-footer">December 20, 2020
</footer>
<a class="entry-link" aria-label="post link to 报考驾照遇到的坑" href="https://chenyhd.github.io/blog/posts/%E8%80%83%E9%A9%BE%E7%85%A7/"></a>
</article>
</main><footer class="footer">
<span>© 2022 <a href="https://chenyhd.github.io/blog">Blog</a></span>
<span>·</span>
<span>Powered by <a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a></span>
<span>·</span>
<span>Theme <a href="https://git.io/hugopapermod" rel="noopener" target="_blank">PaperMod</a></span>
</footer>
<a href="#top" aria-label="go to top" title="Go to Top" accesskey="g">
<button class="top-link" id="top-link" type="button">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6">
<path d="M12 6H0l6-6z" /></svg>
</button>
</a>
<script>
window.onload = function () {
if (localStorage.getItem("menu-scroll-position")) {
document.getElementById('menu').scrollLeft = localStorage.getItem("menu-scroll-position");
}
}
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener("click", function (e) {
e.preventDefault();
var id = this.getAttribute("href").substr(1);
document.querySelector(`[id='${id}']`).scrollIntoView({
behavior: "smooth"
});
});
});
var mybutton = document.getElementById("top-link");
window.onscroll = function () {
if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {
mybutton.style.visibility = "visible";
mybutton.style.opacity = "1";
} else {
mybutton.style.visibility = "hidden";
mybutton.style.opacity = "0";
}
};
function menu_on_scroll() {
localStorage.setItem("menu-scroll-position", document.getElementById('menu').scrollLeft);
}
</script>
<script>
document.getElementById("theme-toggle").addEventListener("click", () => {
if (document.body.className.includes("dark")) {
document.body.classList.remove('dark');
localStorage.setItem("pref-theme", 'light');
} else {
document.body.classList.add('dark');
localStorage.setItem("pref-theme", 'dark');
}
})
</script>
</body>
</html>