-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.html
403 lines (358 loc) · 11.4 KB
/
base.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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
<!DOCTYPE html>
<html lang="zh-CN" class="immersion-color toolbar-blur article-header-style-1" style="--card-radius:9px;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href="https://static.pisearch.cn/logonew.min.svg">
<meta name="theme-color" content="#8e8cd8">
<meta name="theme-color-rgb" content="142,140,216">
<meta name="theme-color-origin" content="#8e8cd8">
<title>{% block title %}{{ bloog.name }}{% endblock %}</title>
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net/">
<link rel="dns-prefetch" href="https://fonts.googleapis.com/">
<link rel="stylesheet" id="argon_css_merged-css" href="https://static.pisearch.cn/theme_argon/argon_css_merged.css"
type="text/css" media="all">
<link rel="stylesheet" id="style-css" href="https://static.pisearch.cn/theme_argon/style.css" type="text/css" media="all">
{% include 'oierspace/blog/themes/pc/theme_argon/component/global_styles_inline_css.html' %}
<script type="text/javascript" src="https://static.pisearch.cn/theme_argon/argon_js_merged.js" id="argon_js_merged-js"></script>
<script type="text/javascript" src="https://static.pisearch.cn/theme_argon/argon.min.js" id="argonjs-js"></script>
{% include 'oierspace/blog/themes/pc/theme_argon/component/wp_custom_css.html' %}
<script>
document.documentElement.classList.remove("no-js");
var argonConfig = {
wp_path: "/",
language: "zh_CN",
dateFormat: "YMD",
zoomify: false,
pangu: "false",
lazyload: {
threshold: 800,
effect: "fadeIn"
},
fold_long_comments: true,
fold_long_shuoshuo: false,
disable_pjax: false,
pjax_animation_durtion: 600,
headroom: "true",
waterflow_columns: "1",
code_highlight: {
enable: true,
hide_linenumber: false,
transparent_linenumber: false,
break_line: false
}
}
</script>
<script>
var darkmodeAutoSwitch = "time";
function setDarkmode(enable) {
if (enable == true) {
$("html").addClass("darkmode");
} else {
$("html").removeClass("darkmode");
}
$(window).trigger("scroll");
}
function toggleDarkmode() {
if ($("html").hasClass("darkmode")) {
setDarkmode(false);
sessionStorage.setItem("Argon_Enable_Dark_Mode", "false");
} else {
setDarkmode(true);
sessionStorage.setItem("Argon_Enable_Dark_Mode", "true");
}
}
if (sessionStorage.getItem("Argon_Enable_Dark_Mode") == "true") {
setDarkmode(true);
}
function toggleDarkmodeByPrefersColorScheme(media) {
if (sessionStorage.getItem('Argon_Enable_Dark_Mode') == "false" || sessionStorage.getItem('Argon_Enable_Dark_Mode') == "true") {
return;
}
if (media.matches) {
setDarkmode(true);
} else {
setDarkmode(false);
}
}
function toggleDarkmodeByTime() {
if (sessionStorage.getItem('Argon_Enable_Dark_Mode') == "false" || sessionStorage.getItem('Argon_Enable_Dark_Mode') == "true") {
return;
}
let hour = new Date().getHours();
if (hour < 7 || hour >= 22) {
setDarkmode(true);
} else {
setDarkmode(false);
}
}
if (darkmodeAutoSwitch == 'system') {
var darkmodeMediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
darkmodeMediaQuery.addListener(toggleDarkmodeByPrefersColorScheme);
toggleDarkmodeByPrefersColorScheme(darkmodeMediaQuery);
}
if (darkmodeAutoSwitch == 'time') {
toggleDarkmodeByTime();
}
if (darkmodeAutoSwitch == 'alwayson') {
setDarkmode(true);
}
function toggleAmoledDarkMode() {
$("html").toggleClass("amoled-dark");
if ($("html").hasClass("amoled-dark")) {
localStorage.setItem("Argon_Enable_Amoled_Dark_Mode", "true");
} else {
localStorage.setItem("Argon_Enable_Amoled_Dark_Mode", "false");
}
}
if (localStorage.getItem("Argon_Enable_Amoled_Dark_Mode") == "true") {
$("html").addClass("amoled-dark");
} else if (localStorage.getItem("Argon_Enable_Amoled_Dark_Mode") == "false") {
$("html").removeClass("amoled-dark");
}
</script>
<script>
if (navigator.userAgent.indexOf("Safari") !== -1 && navigator.userAgent.indexOf("Chrome") === -1) {
$("html").addClass("using-safari");
}
</script>
<link href="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-d/font-awesome/5.15.2/css/all.min.css" type="text/css"
rel="stylesheet">
{% block head %}{% endblock %}
{% block style %}{% endblock %}
{% if has_pro_plan %}
<style>{{ blog.custom_css }}</style>
{% endif %}
</head>
<body class="post-template-default single single-post postid-746 single-format-standard multiple-domain-solstice23-top with-headroom headroom---not-top leftbar-can-headroom headroom---bottom headroom---pinned">
{% if configs.background_video %}
<video src="https://cdn.jsdelivr.net/gh/solstice23/cdn/pixiv_91814999_2k_minified.mp4" class="bg-video bg-video-day" autoplay=""
loop="loop" muted=""></video>
<video src="https://cdn.jsdelivr.net/gh/solstice23/cdn/pixiv_89449659_2k_minified.mp4" class="bg-video bg-video-night" autoplay=""
loop="loop" muted=""></video>
{% endif %}
<style>
video.bg-video {
position: fixed;
z-index: -1;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: 100vw;
height: 100vh;
object-fit: cover;
pointer-events: none;
transition: opacity .3s ease;
}
video.bg-video.bg-video-day {
opacity: 1;
}
video.bg-video.bg-video-night {
opacity: 0;
}
html.darkmode video.bg-video.bg-video-day {
opacity: 0;
}
html.darkmode video.bg-video.bg-video-night {
opacity: 1;
}
html.content-pull-down #content {
transform: translateY(calc(58.2vh * var(--pull-down-persent)));
}
#content {
transition: transform 0.1s ease-out;
}
.banner-container {
transition: height .3s ease-out, font-size .3s ease-out;
}
html.content-pull-down .banner-container {
height: calc(40vh + 45vh * var(--pull-down-persent) - 120px) !important;
font-size: calc(100% + 20% * var(--pull-down-persent));
}
</style>
<style id="themecolor_css">
:root {
--themecolor: #8e8cd8;
--themecolor-R: 142;
--themecolor-G: 140;
--themecolor-B: 216;
--themecolor-H: 242;
--themecolor-S: 49;
--themecolor-L: 70;
}
</style>
<style id="theme_cardradius_css">
:root {
--card-radius: 9px;
}
</style>
{% include 'oierspace/blog/themes/pc/theme_argon/component/navbar.html' %}
{% include 'oierspace/blog/themes/pc/theme_argon/component/banner.html' %}
<style>
#content:before {
content: '';
display: block;
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: -2;
{% if configs.background_video %}
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAEXRFWHRTb2Z0d2FyZQBTbmlwYXN0ZV0Xzt0AAAAMSURBVAiZY1BTUwMAAOgAc4eVdRoAAAAASUVORK5CYII=);
{% endif %}
background-position: center;
background-size: cover;
background-repeat: no-repeat;
opacity: 0.8;
transition: opacity .5s ease;
}
html.darkmode #content:before {
filter: brightness(0.65);
}
#content:after {
content: '';
display: block;
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
z-index: -2;
{% if configs.background_video %}
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAEXRFWHRTb2Z0d2FyZQBTbmlwYXN0ZV0Xzt0AAAAMSURBVAiZY1BTUwMAAOgAc4eVdRoAAAAASUVORK5CYII=);
{% endif %}
background-position: center;
background-size: cover;
background-repeat: no-repeat;
opacity: 0;
transition: opacity .5s ease;
}
html.darkmode #content:after {
opacity: 0.8;
}
html.darkmode #content:before {
opacity: 0;
}
</style>
<div id="content" class="site-content">
<div class="page-information-card-container">{% block info %}{% endblock %}</div>
<div id="sidebar_mask"></div>
<aside id="leftbar" class="leftbar widget-area" role="complementary">
{% include 'oierspace/blog/themes/pc/theme_argon/component/side_part1.html' %}
{% include 'oierspace/blog/themes/pc/theme_argon/component/side_part2.html' %}
</aside>
<div id="primary" class="content-area">
<main id="main" class="site-main article-list article-list-home" role="main">
{% block content %}{% endblock %}
<footer id="footer" class="site-footer card shadow-sm border-0">
<div>此博客基于 <a href="https://oier.space">OIer Space</a>,由 <a href="https://www.piterator.com">Piterator</a> 打造。</div>
{% if configs.background_video %}
<div>
Background:
<a href="https://www.pixiv.net/artworks/91814999" target="_blank"><strong>Pixiv 91814999</strong></a>
☀ & <a href="https://www.pixiv.net/artworks/89449659" target="_blank"><strong>Pixiv 89449659</strong> 🌙</a>
</div>
{% endif %}
<div>
Theme <a href="https://github.com/solstice23/argon-theme" target="_blank"><strong>Argon</strong></a>
By solstice23
</div>
</footer>
</main>
</div>
</div>
<script src="https://static.pisearch.cn/theme_argon/argontheme.js"></script>
<style>
@keyframes beating {
20%,
50% {
transform: scale(1.25);
}
0%,
30%,
70%,
100% {
transform: scale(1);
}
}
.footer-love-icon {
transition: color .3s ease;
display: inline-block;
}
#footer:hover .footer-love-icon {
color: #ff97a8;
animation: beating 1.5s ease-out infinite;
}
</style>
<script>
$("#footer > div:last-of-type").append(" with <i class='footer-love-icon'>♥</i>");
</script>
<style>
.triangles {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
opacity: .4;
pointer-events: none;
overflow: hidden;
}
.leftbar-banner {
position: relative;
}
.leftbar-banner .triangles {
border-radius: var(--card-radius) var(--card-radius) 0 0;
}
#footer .triangles {
border-radius: var(--card-radius);
}
main>.card>.triangles,
#leftbar>.card>.triangles {
-webkit-mask-image: linear-gradient(0deg, #fff 0%, transparent 100%);
mask-image: linear-gradient(0deg, #fff 0%, transparent 100%);
opacity: .2;
top: calc(100% - 150px);
}
#banner>.shape>span {
display: none;
}
#banner>.shape>.triangles {
width: 100%;
left: 0;
right: 0;
-webkit-mask-image: linear-gradient(180deg, #fff 0%, transparent 100%);
mask-image: linear-gradient(180deg, #fff 0%, transparent 100%);
opacity: .35;
}
.related-post-card-container.has-thumbnail~.triangles {
display: none;
}
#comment_emotion_btn .triangles {
display: none !important;
}
</style>
<style>
html:not(.hide-triangles) #blog_setting_triangles_on {
color: #fff;
background: var(--themecolor);
}
html.hide-triangles #blog_setting_triangles_off {
color: #fff;
background: var(--themecolor);
}
html.hide-triangles .triangles {
display: none;
}
</style>
<link rel="preconnect" href="https://fonts.googleapis.com/">
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin="">
<style>
body {
font-family: "Comfortaa", "Open Sans", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimSun, sans-serif;
}
</style>
</body>
</html>