-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
183 lines (131 loc) · 5.76 KB
/
index.html
File metadata and controls
183 lines (131 loc) · 5.76 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
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
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,minimum-scale=1,maximum-scale=1" />
<title>DOEOF</title>
<meta name="description" content="温故而知新" />
<link rel="shortcut icon" href="https://doeof.com/favicon.ico?v=1645870320817">
<line rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<!-- <link rel="stylesheet" href="https://doeof.com/static/fontawesome/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous"> -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css">
<link rel="stylesheet" href="https://doeof.com/styles/main.css">
<script src="https://cdn.bootcss.com/highlight.js/9.12.0/highlight.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Droid+Serif:400,700">
</head>
<body>
<div class="main">
<div class="main-content">
<div class="site-header">
<a href="https://doeof.com">
<img class="avatar" src="https://doeof.com/images/avatar.png?v=1645870320817" alt="">
</a>
<h1 class="site-title">
DOEOF
</h1>
<p class="site-description">
温故而知新
</p>
<div class="menu-container">
<a href="/" class="menu">
首页
</a>
<a href="/archives" class="menu">
归档
</a>
<a href="/tags" class="menu">
标签
</a>
</div>
<div class="social-container">
<a href="https://github.com/youbuwei" target="_blank">
<i class="fab fa-github"></i>
</a>
</div>
</div>
<div class="post-container">
<article class="post">
<a href="https://doeof.com/history-of-western-sailboat/">
<h2 class="post-title">西方帆船船种与历史简介</h2>
</a>
<div class="post-info">
<span>
2020年03月24日
</span>
<span>
20 min read
</span>
<a href="https://doeof.com/tag/wEv6OYkAb/" class="post-tag">
# sailboat
</a>
</div>
<div class="post-abstract">
<p>在大航海时代刚开始的15世纪,火药与枪炮等武器已经发明数百年,但却还未在陆战中占有一席之地。除了攻城外,需要十几匹马拖拉、几十名士兵来操作的笨重火炮,实在是很难在瞬息万变的战场上发挥作用。但是,船的载重能力远比马匹拖拉要强上几百倍,即使是普通的商船也能轻易载运十几门大炮。因此,大炮很早就被注意到而成为了帆船海战的主要武器。</p>
</div>
</article>
<article class="post">
<a href="https://doeof.com/shaobing/">
<h2 class="post-title">员外家的烧饼</h2>
</a>
<div class="post-info">
<span>
2019年10月16日
</span>
<span>
13 min read
</span>
<a href="https://doeof.com/tag/kAgXax1s_/" class="post-tag">
# 故事
</a>
</div>
<div class="post-abstract">
<p>转载自<a href="https://www.zhihu.com/people/douzishushu">豆子</a>的专栏文章<a href="https://zhuanlan.zhihu.com/p/40247241">员外家的烧饼</a></p>
<p>员外家的烧饼不好吃,但每天依然都会排很长很长的队。过往本县的商贾行人,停下脚步,从这蛇形的队伍中,猜测出员外家烧饼的绝世美味,于是他们也排上了队。</p>
<p>员外家的烧饼是我爷爷打的,我爷爷打的烧饼我爹天天都吃,从吃第一口,我爹就知道这烧饼徒有虚名,不如矮个子家打的好吃。矮个子打的烧饼又香又脆,最好是趁热吃,皮如瓜干瓤如肉,就着菜,喝着汤,一头汗,满口香。我爷爷打的烧饼,则不同,涩口胀胃,味同嚼蜡。但他夹烧饼时熟练的手法,以及唤吆喝时中气十足的嗓门,显示出了他一代宗师的风范,人们管他叫“烧饼艺术家”。</p>
</div>
</article>
</div>
<div class="pagination-container">
</div>
<div class="site-footer">
© 2022 DOEOF |
<a class="rss" href="https://doeof.com/atom.xml" target="_blank">RSS</a>
</div>
<script>
hljs.initHighlightingOnLoad()
let mainNavLinks = document.querySelectorAll(".markdownIt-TOC a");
// This should probably be throttled.
// Especially because it triggers during smooth scrolling.
// https://lodash.com/docs/4.17.10#throttle
// You could do like...
// window.addEventListener("scroll", () => {
// _.throttle(doThatStuff, 100);
// });
// Only not doing it here to keep this Pen dependency-free.
window.addEventListener("scroll", event => {
let fromTop = window.scrollY;
mainNavLinks.forEach((link, index) => {
let section = document.getElementById(decodeURI(link.hash).substring(1));
let nextSection = null
if (mainNavLinks[index + 1]) {
nextSection = document.getElementById(decodeURI(mainNavLinks[index + 1].hash).substring(1));
}
if (section.offsetTop <= fromTop) {
if (nextSection) {
if (nextSection.offsetTop > fromTop) {
link.classList.add("current");
} else {
link.classList.remove("current");
}
} else {
link.classList.add("current");
}
} else {
link.classList.remove("current");
}
});
});
</script>
</div>
</div>
</body>
</html>