forked from wu-kan/wu-kan.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.yml
785 lines (776 loc) · 35.7 KB
/
_config.yml
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
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
title: mxp # 站点标题
description: | # 头像背后的信息(html格式),<br/>代表换行
在线修电脑的<br/>
永远喜欢水野爱<br/>
田宫例四驱车<br/>
ASC<br/>
<a href="mailto:[email protected]">
<i class="fas fa-envelope"></i>
</a>
<a href="https://github.com/wu-kan">
<i class="fab fa-github"></i>
</a>
<a href="https://codeforces.com/profile/WuK">
<i class="fas fa-chart-bar"></i>
</a>
<a href="https://vjudge.net/user/WuK">
<i class="fas fa-smile"></i>
</a>
<a href="https://www.zhihu.com/people/wu.kan/activities">
<i class="fab fa-zhihu"></i>
</a>
<iframe
src="https://music.163.com/outchain/player?type=0&id=155059595&auto=0&height=32"
width=100%
height=52
frameborder="no"
border="0"
marginwidth="0"
marginheight="0"
></iframe>
url: https://mxpsept.github.io # 你的域名,例如 https://wu-kan.github.io
baseurl: "" # 假如你的博客是建在某个目录下的,请在这里加上目录名,并且下面配置的所有链接里的`/assets`前也要加,即`/your_baseurl/assets`。这一项结尾不要有'/'。
defaults: # 将所有配置选项使用<https://jekyllrb.com/docs/configuration/front-matter-defaults/>功能进行配置
- scope:
path: "" # an empty string here means all files in the project
values: # 以下配置项也可以在任意页面自定义
jekyll-theme-WuK: # 我的主题的自定义样式都在这个命名空间
default:
body:
theme-base: theme-base-07 # 可选的主题色包括08~0f,见 <https://github.com/poole/lanyon>
layout-reverse: true # 开启后sidebar在右边,反之左边
sidebar-overlay: true # 开启后正文不随sidebar移动而移动
append_to_head: # 通过内嵌html的方式引入并定制插件,删改前确定知道自己在做什么。定制插件的方式可以参考这篇文章 <https://wu-kan.cn/_posts/2019-01-18-基于Jekyll搭建个人博客/>
- | #一些页面优化标签,看不懂可跳过
<meta
name="viewport"
content="width=device-width,minimum-scale=1,initial-scale=1"
/>
<meta
http-equiv="content-type"
content="text/html; charset=utf-8"
/>
<link
rel="alternate"
href="/feed.xml"
title="RSS"
type="application/rss+xml"
/>
- | # 网站小图标,可换成你自己的图片,改href中的部分即可
<link
rel="apple-touch-icon-precomposed"
href="https://gravatar.loli.net/avatar/289efba375d63424de3c49569c446744?s=320"
/>
<link
rel="shortcut
icon"
href="https://gravatar.loli.net/avatar/289efba375d63424de3c49569c446744?s=32"
/>
- | # 来自lanyon的页面样式,不要改
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/combine/gh/poole/[email protected]/public/css/poole.min.css,gh/poole/[email protected]/public/css/lanyon.min.css,gh/poole/[email protected]/public/css/syntax.min.css"
/>
- | # 用js引入fontawesome图标样式,功能更丰富
<script
async="async"
src="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/js/all.min.js"
></script>
- | # 引入live2d看板娘!不需要可以把这一项都删掉
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/Dreamer-Paul/[email protected]/static/pio.min.css"
/>
<script
async="async"
src="https://cdn.jsdelivr.net/combine/gh/Dreamer-Paul/[email protected]/static/l2d.min.js,gh/Dreamer-Paul/[email protected]/static/pio.min.js"
onload='
let pio_container = document.createElement("div");
pio_container.classList.add("pio-container");
pio_container.classList.add("right");
pio_container.style.bottom = "-2rem";
pio_container.style.zIndex = "1";
document.body.insertAdjacentElement("beforeend", pio_container);
let pio_action = document.createElement("div");
pio_action.classList.add("pio-action");
pio_container.insertAdjacentElement("beforeend", pio_action);
let pio_canvas = document.createElement("canvas");
pio_canvas.id = "pio";
pio_canvas.style.width = "14rem";
pio_canvas.width = "600";
pio_canvas.height = "800";
pio_container.insertAdjacentElement("beforeend", pio_canvas);
let pio = new Paul_Pio({
"mode": "fixed",
"hidden": true,
"night": "for(let i=7; i<16; ++i) if(document.body.classList.contains(`theme-base-0`+i.toString(16))) { document.body.classList.remove(`theme-base-0`+i.toString(16)); document.body.classList.add(`theme-base-0`+((i-6)%9+7).toString(16)); break; }",
"content": {
"link": ["https:\/\/jekyll-theme-WuK.wu-kan.cn"],
"skin": ["要换成我的朋友吗?", "让她放个假吧~"],
"hidden": true,
"custom": [{
"selector": "a",
"type": "link",
}, {
"selector": ".sidebar-toggle",
"text": "打开侧边栏叭~"
}, {
"selector": ".effect-info",
"text": "哇,你发现了什么!"
}, {
"selector": "#sidebar-search-input",
"text": "想搜索什么呢?很多干货哦!"
}, {
"selector": "#toc",
"text": "这是目录~"
}, {
"selector": ".page-title",
"text": "这是标题~"
}, {
"selector": ".v",
"text": "评论没有审核,要对自己的发言负责哦~"
}]
},
"model": [
"https:\/\/cdn.jsdelivr.net/gh/imuncle/live2d/model/33/model.2018.bls-winter.json",
"https:\/\/cdn.jsdelivr.net/gh/imuncle/live2d/model/platelet-2/model.json",
"https:\/\/cdn.jsdelivr.net/gh/imuncle/live2d/model/xiaomai/xiaomai.model.json",
"https:\/\/cdn.jsdelivr.net/gh/imuncle/live2d/model/mashiro/seifuku.model.json",
"https:\/\/cdn.jsdelivr.net/gh/imuncle/live2d/model/Violet/14.json",
"https:\/\/cdn.jsdelivr.net/gh/xiaoski/live2d_models_collection/Kobayaxi/Kobayaxi.model.json",
"https:\/\/cdn.jsdelivr.net/gh/xiaoski/live2d_models_collection/mikoto/mikoto.model.json",
"https:\/\/cdn.jsdelivr.net/gh/xiaoski/live2d_models_collection/uiharu/uiharu.model.json"]
});'
></script>
- | # 百度爬虫推送,http站点使用 http://push.zhanzhang.baidu.com/push.js
<script
src='https://zz.bdstatic.com/linksubmit/push.js'
async="async"
></script>
- | # 网站背景图片,分竖屏、宽屏;改链接即可,不想用可以把这一项全删掉;要换壁纸图片的话可把url内的部分换成你自己的,比如你放在 /assets/image/background.jpg,那就改成 url(/assets/image/background.jpg)
<style>
.wrap {
transition-property: width,background-size,transform;
transition-duration: .3s;
transition-timing-function: ease-in-out;
min-height: 100%;
display: inline-block;
background-size: 100% auto;
background-position: 0% 0%;
background-repeat: no-repeat;
background-attachment: fixed;
background-image: url(https://Mizuno-Ai.wu-kan.cn/pixiv/74559485_p1.webp);
}
@media (min-aspect-ratio: 2400/1850) {
.wrap {
background-image: url(https://Mizuno-Ai.wu-kan.cn/pixiv/71932901_p0.webp);
}
}
.sidebar-overlay #sidebar-checkbox:checked ~ .wrap {
width: calc(100% - 14rem);
background-size: calc(100% - 14rem) auto;
transform: translateX(14rem);
}
.layout-reverse.sidebar-overlay #sidebar-checkbox:checked ~ .wrap {
transform: translateX(0);
}
</style>
- | # 网站字体,要换字体建议架梯子上<https://fonts.google.com/>挑选,再通过fonts.loli.net 加速引入
<style>
.sidebar,
html,
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: PingFang SC, Menlo, Monaco, "Courier New", Microsoft JhengHei, monospace;
}
</style>
- | # 网页标题使用加粗字号
<style>
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: bold;
}
</style>
- | #修复行内图片默认样式
<style>
img {
display: inline-block;
margin: 0;
}
</style>
- | # 彩虹滚动条,仅对Chrome系浏览器生效
<style>
::-webkit-scrollbar {
width: 3px;
height: 3px;
}
::-webkit-scrollbar-thumb {
background-image: linear-gradient(45deg, Cyan 0%, Magenta 50%, Yellow 100%);
}
</style>
- | # 选中字体颜色
<style>
::selection {
color: White;
background: Black;
}
</style>
sidebar: # 此配置项下是一些关于侧边栏的配置
disable: false # 是否不显示sidebar
avatar: # 侧边栏显示的头像
enable: true
img: https://gravatar.loli.net/avatar/289efba375d63424de3c49569c446744?s=320 # 头像的地址
nav: # 导航部分的内容,你也可以自己增加文字、图标(来自fontawesome)和对应的链接
- title: '<i class="fas fa-home fa-fw"></i> 首页'
href: /
- title: '<i class="fas fa-comments fa-fw"></i> 留言'
href: /comments/
- title: '<i class="fas fa-tags fa-fw"></i> 标签'
href: /tags/
- title: '<i class="fas fa-archive fa-fw"></i> 归档'
href: /archive/
- title: '<i class="fas fa-coffee fa-fw"></i> 打赏'
href: /merger/
simple_jekyll_search: # 侧边栏的全站搜索
enable: true
full_text_search: false # 可能导致缓慢的搜索和加载
append: | # 如果看不懂就不改
<style>
#sidebar-search-input {
background: none;
border: none;
color: White;
width: 100%;
}
#sidebar-search-results-container {
overflow: auto auto;
max-height: 66.6vh;
}
</style>
<input
id="sidebar-search-input"
placeholder="搜索博文"
/>
<ol
id="sidebar-search-results-container"
></ol>
<script
src='https://cdn.jsdelivr.net/npm/[email protected]/dest/simple-jekyll-search.min.js'
async='async'
onload='
SimpleJekyllSearch({
json: "/assets/simple-jekyll-search/search.json",
searchInput: document.getElementById("sidebar-search-input"),
resultsContainer: document.getElementById("sidebar-search-results-container"),
searchResultTemplate: `<li><a href="{url}">{title}</a></li>`,
limit: 999,
fuzzy: true
})'
></script>
jekyll-toc: # 侧边栏的目录插件,https://github.com/allejo/jekyll-toc
enable: true
prepend: | # 目录过长时自动折叠
<style>
#toc {
overflow: auto auto;
max-height: 66.6vh;
}
</style>
append_to_sidebar:
#- <script defer="defer" src="https://cdn.jsdelivr.net/gh/poole/[email protected]/public/js/script.min.js"></script> # 点击空白处而非按钮从而关闭侧边栏的插件,可选
- | #修复点击侧边栏按钮回到顶部的问题
<style>
.sidebar-checkbox {
display: none;
}
.sidebar-toggle {
position: fixed;
}
</style>
- | # 侧边栏头像效果
<style>
.effect {
margin: 1rem;
perspective: 900px;
}
.effect-info {
text-align: center;
backface-visibility: hidden;
position: absolute;
top: 0;
transform-style: preserve-3d;
}
.effect-img {
z-index: 11;
width: 100%;
height: 100%;
position: relative;
transition: all 0.5s ease-in-out;
}
.effect-img:before {
position: absolute;
display: block;
}
.effect-right_to_left .effect-img {
transform-origin: 0% 50%;
}
.effect-right_to_left:hover .effect-img {
transform: rotate3d(0, 1, 0, -180deg);
}
</style>
- | # 运行时间,可将倒数第三行的时间改成你自己的建站时间,格式仿照上面的;不需要的话可以把这一项都删掉
<div>
<i class="fas fa-cog fa-spin fa-fw"></i>
<span id="run_time_day">
<i class="fas fa-spinner fa-pulse"></i>
</span>天
<span id="run_time_hour">
<i class="fas fa-spinner fa-pulse"></i>
</span>时
<span id="run_time_minute">
<i class="fas fa-spinner fa-pulse"></i>
</span>分
<span id="run_time_second">
<i class="fas fa-spinner fa-pulse"></i>
</span>秒
<script>
setInterval(function (d,h,m,s,b) {
function setzero(i) {
return i < 10 ? "0" + i : i;
}
let BirthDay = new Date(b);
let today = new Date();
let timeold = (today.getTime() - BirthDay.getTime());
let sectimeold = timeold / 1000;
let secondsold = Math.floor(sectimeold);
let msPerDay = 24 * 60 * 60 * 1000;
let e_daysold = timeold / msPerDay;
let daysold = Math.floor(e_daysold);
let e_hrsold = (e_daysold - daysold) * 24;
let hrsold = Math.floor(e_hrsold);
let e_minsold = (e_hrsold - hrsold) * 60;
let minsold = Math.floor((e_hrsold - hrsold) * 60);
let seconds = Math.floor((e_minsold - minsold) * 60);
d.textContent = daysold;
h.textContent = setzero(hrsold);
m.textContent = setzero(minsold);
s.textContent = setzero(seconds);
},
1000,
document.getElementById("run_time_day"),
document.getElementById("run_time_hour"),
document.getElementById("run_time_minute"),
document.getElementById("run_time_second"),
"10/04/2017 11:03:56")// 这是我第一篇CSDN博客的时间
</script>
</div>
- | # 不蒜子页面统计,看不懂可不改
<div>
<div>
<i class="fas fa-eye fa-fw"></i>
<span id="busuanzi_value_page_pv">
<i class="fas fa-spinner fa-pulse"></i>
</span>次
</div>
<div>
<i class="fas fa-paw fa-fw"></i>
<span id="busuanzi_value_site_pv">
<i class="fas fa-spinner fa-pulse"></i>
</span>枚
</div>
<div>
<i class="fas fa-user-friends fa-fw"></i>
<span id="busuanzi_value_site_uv">
<i class="fas fa-spinner fa-pulse"></i>
</span>人
</div>
<script
src='https://cdn.jsdelivr.net/npm/[email protected]'
async='async'
></script>
</div>
- | # 觉得我的主题好用的话,让更多的人知道它吧!
<div>
<i class="fas fa-thumbs-up fa-fw"></i>
<a href="https://jekyll-theme-WuK.wu-kan.cn">
jekyll-theme-WuK
</a>
</div>
- | # Copyright声明
<div>
<i class="fas fa-copyright fa-fw"></i>
2017-2020 WuK
</div>
- | # 我的备案信息,请你的网站删掉这一项。互联网非法外之地!
<div>
<i class="fas fa-info-circle fa-fw"></i>
<a href="http://beian.miit.gov.cn">
粤ICP备 20024947号
</a>
</div>
- | # 公安网备信息
<div>
<img src="http://www.beian.gov.cn/img/new/gongan.png" class="fa-fw"></img>
<a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=34070202000407">
皖公网安备 34070202000407号
</a>
</div>
wordcount: # 全站字数统计
enable: false # 本地调试时建议关闭,非常影响站点生成速度(所需时间与博文数量的平方成正比)
prepend: <i class="fas fa-user-edit fa-fw"></i>
kilo: 千
unit: 字
page:
masthead: # 显示顶栏
enable: true
katex: # katex 数学公式插件
enable: true
append: |
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"
/>
<script
src="https://cdn.jsdelivr.net/combine/npm/[email protected]/dist/katex.min.js,npm/[email protected]/dist/contrib/mathtex-script-type.min.js,npm/[email protected]/dist/contrib/auto-render.min.js"
async="async"
onload='renderMathInElement(document.body, { delimiters: [{ left: "$", right: "$", display: false }] })'
></script>
mermaid: # mermaid图插件
enable: true
append: |
<style>
pre.language-mermaid,
code.language-mermaid {
display: none;
}
.mermaid {
overflow: auto auto;
max-width: 100%;
max-height: 66.6vh;
}
</style>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mermaid.min.js"
async="async"
onload='
for(let x of document.getElementsByClassName("language-mermaid"))
if(x.nodeName=="CODE")
{
let m = document.createElement("div");
m.classList.add("mermaid");
m.textContent = x.textContent;
x.parentNode.insertAdjacentElement("beforebegin", m);
}'
></script>
prism: # 代码高亮插件
enable: true
append: |
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/combine/npm/[email protected]/plugins/line-numbers/prism-line-numbers.min.css,npm/[email protected]/plugins/toolbar/prism-toolbar.min.css,gh/PrismJS/prism-themes@1955cfef6953b3a59e66016e8a1e016b45d6cc79/themes/prism-nord.min.css"
/>
<script
src="https://cdn.jsdelivr.net/combine/npm/[email protected]/components/prism-core.min.js,npm/[email protected]/plugins/autoloader/prism-autoloader.min.js,npm/[email protected]/plugins/line-numbers/prism-line-numbers.min.js,npm/[email protected]/plugins/toolbar/prism-toolbar.min.js"
async="async"
onload='
Prism.plugins.autoloader.languages_path = "https:\/\/cdn.jsdelivr.net/npm/prismjs/components/";
for(let x of document.getElementsByTagName("pre"))
x.classList.add("line-numbers");
Prism.plugins.toolbar.registerButton("select-code", function (env) {
let button = document.createElement("button");
button.textContent = "select this " + env.language;
button.addEventListener("click", function () {
if (document.body.createTextRange) {
let range = document.body.createTextRange();
range.moveToElementText(env.element);
range.select();
} else if (window.getSelection) {
let selection = window.getSelection();
let range = document.createRange();
range.selectNodeContents(env.element);
selection.removeAllRanges();
selection.addRange(range);
}
});
return button;
})'
></script>
prepend:
- | # 代码块过长自动折叠
<style>
pre {
max-height: 66.6vh;
overflow: auto;
}
</style>
- | # 增加宽屏下的显示内容
<style>
.container {
min-width: 66.6%;
}
</style>
- | # 给文章加上磨砂背景,防止被背景影响阅读;同时加上加载动画
<style>
.masthead,
.container.content {
padding-top: 1rem;
padding-bottom: 1rem;
margin-bottom: 1.5rem;
box-shadow: 0 0 .75rem rgba(0, 0, 0, 0.1);
background-color: rgba(255,255,255,.8);
animation-duration: 2s;
animation-name: fadeIn;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
</style>
comments: # 留言页
append:
| # 配置评论区,appId和appKey需要换成你自己的,见<https://valine.js.org/configuration.html>,推荐再整一个评论管理系统<https://github.com/DesertsP/Valine-Admin>
<div class="v">
<i class="fas fa-spinner fa-pulse"></i>
</div>
<script
src='https://cdn.jsdelivr.net/npm/[email protected]/dist/Valine.min.js'
async="async"
onload='
new Valine({
"el": document.getElementsByClassName("v")[0],
"appId": "PD5DRtsOFJx23GTlHiP3DaU0-gzGzoHsz",
"appKey": "TRkxuG7vXjus4Kr9gF00bul5",
"placeholder": "在这里评论吧!填写邮箱可以获得 Gravatar 头像和回复通知哦",
"requiredFields": ["nick","mail"],
"visitor": true,
"recordIP": true
})'
></script>
post:
date: # 显示博文时间
enable: true
prepend: <i class="fas fa-calendar-day fa-fw"></i>
wordcount: # 统计全文字数
enable: true
prepend: <i class="fas fa-file-word fa-fw"></i>
unit: 字
readtime: # 计算文章阅读时间
enable: true
prepend: <i class="fas fa-clock fa-fw"></i>
unit: 分
divided_by: 300 # 正常人的阅读速度大概每分钟三百个字
visitor: # 需要引入并开启valine的visitor选项使之开始计数; 可能会和busuanzi统计的有出入
enable: true
prepend: <i class="fas fa-book-reader fa-fw"></i>
unit: 次
tags: # 显示博文标签
enable: true
prepend: <i class="fas fa-tag fa-fw"></i>
copyright:
| # 我的文章使用最宽松的知识共享协议:署名 4.0 国际 (CC BY 4.0)。您可以自由地:共享 — 在任何媒介以任何形式复制、发行本作品;演绎 — 修改、转换或以本作品为基础进行创作;在任何用途下,甚至商业目的。只要你遵守许可协议条款,许可人就无法收回你的这些权利。惟须遵守下列条件:署名 — 您必须给出适当的署名,提供指向本许可协议的链接,同时标明是否(对原始作品)作了修改。您可以用任何合理的方式来署名,但是不得以任何方式暗示许可人为您或您的使用背书。
<br/>
<i class="fas fa-coffee fa-fw"></i>
<a href="/merger/">如果这篇博客帮助到你,可以请我喝一杯长岛冰茶~</a>
<br/>
<i class="fab fa-creative-commons-by fa-fw"></i>
<a
href="https://creativecommons.org/licenses/by/4.0/deed.zh"
rel="license">
CC BY 4.0
</a>
(除特别声明或转载文章外)
tags:
pie_chart: # 显示一个标签的饼状统计图,需要引入 mermaid
enable: true
count: true # 统计每个标签下文章的数量
toc: # 在正文里显示一个标签的目录
enable: false
archive:
group_by: "%b %Y" # 见<https://liquid.bootcss.com/filters/date/>
posts_count:
enable: true # 博文数量统计
append: 篇博文。长路漫漫! # 提示语
pie_chart: # 显示一个标签的饼状统计图,需要引入 mermaid
enable: true
year_count: true
toc: # 在正文里显示一个归档的目录
enable: false
merger: # 打赏页,需要配置!
append_to_head:
- | # 需要配置的变量见<https://merger.justhx.com/cn/docs/configure>
<script>
var usage = "payment";
var wechat = "wxp://f2f0zNdJMD8xt217TDkWwPoA2CwTUdaB2ae0";
var tenpay = "https://i.qianbao.qq.com/wallet/sqrcode.htm?m=tenpay&a=1&u=1072964094&ac=CAEQ_sPQ_wMY9Ymq-AU%3D_xxx_sign&n=%E7%81%AB%E7%83%88%E9%B8%9F&f=wallet";
var alipay = "HTTPS://QR.ALIPAY.COM/FKX07670RKTMU5LACBE4F1";
var paypal = "https://paypal.me/mxp0102";
var myname = "mxp";
# var profile = "https://gravatar.loli.net/avatar/289efba375d63424de3c49569c446744?s=320";
var profile = "https://i.loli.net/2020/07/12/7zW6m4gJeAPTpZL.jpg";
var multilingual = true;
var myname_hans = "马旭鹏";
var myname_hant = "马旭鹏";
var myname_eng = "mxp";
var title = "选择你的支付方式";
var subtitle = "跟随进一步的指示以向" + myname + "付款";
var qrcodeapi = "https://www.zhihu.com/qrcode?url=";
</script>
- |
<meta
charset="utf-8"
/>
<meta
name="viewport"
content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<meta
http-equiv="Content-Security-Policy"
content="upgrade-insecure-requests"
/>
- | # merger的页面样式
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/combine/gh/hifocus/[email protected]/assets/styles/spectre.css/spectre-modified.min.css,gh/hifocus/[email protected]/assets/styles/style.min.css"
/>
<script
src='https://cdn.jsdelivr.net/combine/gh/hifocus/[email protected]/assets/js/jQuery/jquery.min.js,gh/hifocus/[email protected]/assets/js/jquery-qrcode/jquery-qrcode.min.js,gh/hifocus/[email protected]/assets/js/JavaScript_MD5/md5.min.js,gh/hifocus/[email protected]/assets/js/function.min.js,gh/hifocus/[email protected]/assets/js/font_974919_xgtacm93vxp.min.js'
defer='defer'
></script>
home: # 展示页的配置可跳过,详见<https://revealjs.com/>
append_to_section_tag:
- key: data-markdown
- key: data-separator # 水平展示页分隔符
value: <!-- .slide -->
- key: data-separator-vertical # 垂直展示页分隔符
value: <!-- .slide vertical=true -->
- key: data-background-color
value: "White"
prepend: |
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/combine/npm/[email protected]/dist/reveal.min.css,npm/[email protected]/dist/theme/serif.min.css"
/>
<style>
.sidebar {
line-height: 1.5;
}
.reveal .slides {
text-align: left;
}
.reveal a {
color: #268BD2;
}
</style>
append: |
<script
async="async"
src="https://cdn.jsdelivr.net/combine/npm/[email protected]/dist/reveal.min.js,npm/[email protected]/plugin/markdown/markdown.min.js"
onload="
document.getElementsByClassName('wrap')[0].classList.add('reveal');
Reveal.initialize({
height: '100%',
hash: true,
mouseWheel: true,
navigationMode: 'linear',
plugins: [ RevealMarkdown ]
});
"></script>
document:
append_to_head:
- |
<meta
content="width=device-width, initial-scale=1"
name="viewport"
/>
- |
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/github-markdown.min.css"
rel="stylesheet"
/>
- | # 仿 github 页面样式;打印时字体换成宋体更美观
<style>
.markdown-body {
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding: 45px;
}
@media (max-width: 767px) {
.markdown-body { padding: 15px; }
}
@media print {
h1 { page-break-before: always; }
.markdown-body { font-family: "Palatino Linotype","Book Antiqua",Palatino,FreeSerif,serif; }
}
</style>
page404:
prepend:
- | # 腾讯公益
<script
src='https://qzonestyle.gtimg.cn/qzone/hybrid/app/404/search_children.js'
async='async'
charset='utf-8'
homePageUrl='/'
homePageName='回到我的主页'
></script>
compress_html: # <https://github.com/penibelst/jekyll-compress-html>
clippings: all
comments: [] # 注释不能压缩,否则 reveal.js 的 ppt切屏受影响
endings: all
ignore:
envs: []
blanklines: false
profile: false
startings: []
# githubpage上支持的插件见<https://pages.github.com/versions/>
plugins: # <https://jekyllrb.com/docs/plugins/>
- jekyll-readme-index # 使用readme做index,从而和github渲染效果一致
- jekyll-default-layout # 为每个markdown自动生成layout
- jekyll-seo-tag # 为每个页面生成标题
- jekyll-sitemap # 为站点生成站点地图
- jekyll-feed # 为站点生成RSS源
- jekyll-remote-theme # 使用remote_theme插件实现主题的前后分离,详见<https://github.com/benbalter/jekyll-remote-theme/>
remote_theme: https://github.com/wu-kan/[email protected] #使用固定版本号以防止主题更新导致站点显示错乱
readme_index: # 缺失index.md和index.html时,使用README.md代替之
with_frontmatter: true # 支持带有yaml头的README
webmaster_verifications: # <https://jekyll.github.io/jekyll-seo-tag/usage/>
google: YIKi1rBnyUaS-DMYiluseI5kZzTwjCkTFmKkSkMZDJk
baidu: szbTSfUGAB
permalink: /_posts/:year-:month-:day-:title/ #生成文章的地址格式,我希望它和_posts目录下的格式一样
# timezone: Asia/Shanghai # 解决githubpage显示时间不正确的问题,见<https://www.iana.org/time-zones>
# future: false # 不发布时间在未来的文章
# limit_posts: 999 # 限制博文数量
# encoding: utf-8
markdown: kramdown
kramdown: # 见<https://kramdown.gettalong.org/options.html>
input: GFM # 见<http://jekyllcn.com/docs/configuration/#kramdown>
syntax_highlighter_opts: # 可见<https://kramdown.gettalong.org/syntax_highlighter/rouge.html>
block:
disable: true # 关掉代码块默认的高亮,换用prismjs
line_numbers: false #渲染出来的效果好鬼畜
span:
disable: true
# 以下为 githubpage上不可修改的参数,见<https://help.github.com/en/github/working-with-github-pages/about-github-pages-and-jekyll>
#lsi: false # 为相关文章生成索引
#safe: true # 禁用自定义插件
#source: [your repo's top level directory] # Jekyll 读取文件的路径
#incremental: false # 增量生成
#highlighter: rouge # 代码高亮器
#gist:
# noscript: false
#kramdown:
# math_engine: mathjax
# syntax_highlighter: rouge