-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_config.yml
699 lines (688 loc) · 31.2 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
title: BOOM # 站点标题
description: | # 头像背后的信息(html格式),<br/>代表换行 http://www.fontawesome.com.cn/ http://www.fontawesome.com.cn/cheatsheet/
<div>
<p style="text-align:center">
<B style="text-align:center">
菩提本无树,明镜亦非台。
本来无一物,何处惹尘埃!
</B>
</p>
<a href="mailto:jhbcoolcoder@gmail.com">
<i class="fas fa-envelope"></i>
</a>
<a href="https://github.com/BruceFight">
<i class="fab fa-github"></i>
</a>
</div>
url: http://www.9527.xn--6qq986b3xl # 你的域名,例如 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-0d # 可选的主题色包括08~0f,见 <https://github.com/poole/lanyon>
layout-reverse: false # 开启后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://avatars.githubusercontent.com/u/15614200?s=96&v=4"
/>
<link
rel="shortcut
icon"
href="https://avatars.githubusercontent.com/u/15614200?s=96&v=4"
/>
- | # 来自lanyon的页面样式,不要改
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/combine/gh/poole/lanyon@v1.1.0/public/css/poole.min.css,gh/poole/lanyon@v1.1.0/public/css/lanyon.min.css,gh/poole/lanyon@v1.1.0/public/css/syntax.min.css"
/>
- | # 用js引入fontawesome图标样式,功能更丰富
<script
async="async"
src="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.13.0/js/all.min.js"
></script>
- | # 引入live2d看板娘!不需要可以把这一项都删掉
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/Dreamer-Paul/Pio@2.4/static/pio.min.css"
/>
<script
async="async"
src="https://cdn.jsdelivr.net/combine/gh/Dreamer-Paul/Pio@2.4/static/l2d.min.js,gh/Dreamer-Paul/Pio@2.4/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": ["http:\/\/www.9527.我爱你"],
"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.jpeg,那就改成 url(/assets/image/background.jpeg)
<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(/assets/image/backGround.jpeg); -->
}
@media (min-aspect-ratio: 2400/1850) {
.wrap {
<!-- background-image: url(/assets/image/backGround.jpeg); -->
}
}
.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://avatars0.githubusercontent.com/u/15614200?s=400&u=357d0ce8e41c1a76eb0b366b6d0c41849db62667&v=4 # 头像的地址
nav: # 导航部分的内容,你也可以自己增加文字、图标(来自fontawesome)和对应的链
#autoplay="autoplay" style="width:100%"
- title: '
<audio controls loop style="width:120%">
<source src="https://ws.stream.qqmusic.qq.com/C400003VLsik0ztbIb.m4a?guid=8364016&vkey=2F7CF74F820C4799633A3E8B14AC9529D33403B5BBB28CEF05FC4D0B294E6831EC78C188AC53E505E32EF5B9CB1CC87DADFD88300DD96831&uin=626567678&fromtag=103032">
</audio>'
- title: '<i class="fas fa-home fa-fw"></i> 首页'
href: /
#- title: '<i class="fas fa-tags fa-fw"></i> 标签'
# href: /tags/
- title: '<i class="fas fa-archive fa-fw"></i> 归档'
href: /archive/
simple_jekyll_search: # 侧边栏的全站搜索
enable: false
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/simple-jekyll-search@1.7.7/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/lanyon@v1.1.0/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"),
"01/17/2016 12:00:00")
</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/busuanzi@2.3.0'
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>
EST.2016 Boom
</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/katex@0.11.1/dist/katex.min.css"
/>
<script
src="https://cdn.jsdelivr.net/combine/npm/katex@0.11.1/dist/katex.min.js,npm/katex@0.11.1/dist/contrib/mathtex-script-type.min.js,npm/katex@0.11.1/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/mermaid@8.5.1/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/prismjs@1.20.0/plugins/line-numbers/prism-line-numbers.min.css,npm/prismjs@1.20.0/plugins/toolbar/prism-toolbar.min.css,gh/PrismJS/prism-themes@1955cfef6953b3a59e66016e8a1e016b45d6cc79/themes/prism-nord.min.css"
/>
<script
src="https://cdn.jsdelivr.net/combine/npm/prismjs@1.20.0/components/prism-core.min.js,npm/prismjs@1.20.0/plugins/autoloader/prism-autoloader.min.js,npm/prismjs@1.20.0/plugins/line-numbers/prism-line-numbers.min.js,npm/prismjs@1.20.0/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>
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>
tags:
pie_chart: # 显示一个标签的饼状统计图,需要引入 mermaid
enable: false
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: false
year_count: true
toc: # 在正文里显示一个归档的目录
enable: false
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/reveal.js@4.0.0/dist/reveal.min.css,npm/reveal.js@4.0.0/dist/theme/serif.min.css"
/>
<style>
.sidebar {
line-height: 1.5;
}
.reveal .slides {
text-align: left;
}
.reveal a {
color: #268BD2;
}
</style>
<script
defer="defer"
src="https://cdn.jsdelivr.net/combine/npm/reveal.js@4.0.0/dist/reveal.min.js,npm/reveal.js@4.0.0/plugin/markdown/markdown.min.js"
onload="
document.getElementsByClassName('wrap')[0].classList.add('reveal');
Reveal.initialize({
height: '100%',
hash: true,
mouseWheel: true,
navigationMode: 'default',
plugins: [ RevealMarkdown ]
});
"></script>
document:
append_to_head:
- |
<meta
content="width=device-width, initial-scale=1"
name="viewport"
/>
- |
<link
href="https://cdn.jsdelivr.net/npm/github-markdown-css@4.0.0/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/jekyll-theme-WuK@4.0.0 #使用固定版本号以防止主题更新导致站点显示错乱
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