-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path_config.yml
399 lines (389 loc) · 17 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
title: SYSU-SCC # 站点标题
description: | # 头像背后的信息(html格式),<br/>代表换行
Student Cluster Competition Team at Sun Yat-sen University
url: https://scc.sysu.tech # 你的域名
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: # 我的主题的自定义样式都在这个命名空间
comments: # 用于存储网页评论
append: |
<script src="https://utteranc.es/client.js"
repo="SYSU-SCC/SYSU-SCC.github.io"
issue-term="url"
theme="github-light"
crossorigin="anonymous"
async
></script>
default:
html_lang: zh # <https://www.w3school.com.cn/tags/html_ref_language_codes.asp>
color-mode: auto # <https://primer.style/css/storybook/?path=/docs/support-theming--docs>
light-theme: light
dark-theme: dark
menu:
nav: # 导航部分的内容,你也可以自己增加文字、图标(来自fontawesome)和对应的链接
- title: 'Index'
href: /
- title: 'Honors'
href: /Honors/
- title: 'Members'
href: /Members/
- title: 'Talks'
href: /Talks/
- title: 'Concat'
href: /Concat/
- title: 'Github'
href: https://github.com/SYSU-SCC
footer: |
<div>
© 2012-2024 SYSU-SCC
</div>
jekyll-toc: # <https://github.com/allejo/jekyll-toc>
enable: true
prepend: |
<style>
#toc {
padding-left: 2em;
}
</style>
prepend:
- |
<form class="SelectMenu-filter">
<input
class="SelectMenu-input form-control"
type="text"
placeholder="Search"
aria-label="Filter"
id="sidebar-search-input"
/>
<ol class="px-5" id="sidebar-search-results-container"></ol>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]"
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: 9,
fuzzy: true
})'
></script>
</form>
append_to_head: # 通过内嵌html的方式引入并定制插件,删改前确定知道自己在做什么。定制插件的方式可以参考这篇文章 <https://wu-kan.cn/_posts/2019-01-18-基于Jekyll搭建个人博客/>
- | # 页面加载动画,可在 <https://css-loaders.com/> 挑选
<style>
.loader-wrapper {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
background-color: white;
z-index: 999;
display: flex;
justify-content: center;
align-items: center;
}
.loader {
width: calc(6*30px);
height: 50px;
display: flex;
color: Black;
filter: drop-shadow(30px 25px 0 currentColor) drop-shadow(60px 0 0 currentColor) drop-shadow(120px 0 0 currentColor);
clip-path: inset(0 100% 0 0);
animation: l12 2s infinite steps(7);
}
.loader:before {
content: "";
width: 30px;
height: 25px;
--c:no-repeat radial-gradient(farthest-side,currentColor 92%,#0000);
background:
var(--c) left /70% 70%,
var(--c) right/20% 20%,
var(--c) top 0 right 15%/20% 20%,
var(--c) bottom 0 right 15%/20% 20%;
}
@keyframes l12 {
100% {clip-path: inset(0 -30px 0 0)}
}
</style>
<script>
document.addEventListener("DOMContentLoaded", (event) => {
for(let x of document.getElementsByClassName("loader-wrapper")) {
x.remove();
}
});
</script>
- | # 一些页面优化标签,看不懂可跳过
<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"
/>
- | # 来自primer/css的页面样式,不要改
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@primer/[email protected]/dist/primer.min.css"
/>
- | # 字体
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@fontsource/[email protected]/index.min.css"
/>
<link
rel='stylesheet'
href='https://chinese-fonts-cdn.deno.dev/packages/jyhpws/dist/%E6%9E%81%E5%BD%B1%E6%AF%81%E7%89%87%E6%96%87%E5%AE%8B/result.css'
/>
<style>
:root {
--fontStack-monospace: "Monaspace Xenon", "极影毁片文宋 Medium", "Courier New", Courier, ui-monospace, monospace;
}
body, .markdown-body {
font-family: var(--fontStack-monospace);
}
</style>
- | # 代码块高亮,异步加载,防止 GitHub 阻塞页面加载
<link
rel="preload"
as="style"
async="async"
onload="this.rel='stylesheet'"
href="https://cdn.jsdelivr.net/gh/poole/[email protected]/public/css/syntax.min.css"
/>
page:
title: # 为每个页面自动生成一个 H1 title
enable: true
prepend:
- | # 填满页面
<style>
.page {
min-height: 100vh;
}
</style>
- | # 首行缩进2字符
<style>
p {
text-indent: 2rem;
}
</style>
- |
<style>
.markdown-body .highlight pre,
.markdown-body pre {
padding: 0;
background: none;
}
</style>
plugin:
- smart_include:
enable: true
key: $
append:
| # 对KaTeX过长公式渲染超出页面的修正,感谢[@AmachiInori](https://github.com/wu-kan/wu-kan.github.io/issues/13)
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css"
/>
<style>
.katex-display>.katex {
white-space: normal;
}
</style>
<script
src="https://cdn.jsdelivr.net/combine/npm/[email protected]/dist/katex.min.js,npm/[email protected]/dist/contrib/auto-render.min.js"
async="async"
onload='renderMathInElement(document.body, { delimiters: [{left: "$$", right: "$$", display: true}, { left: "$", right: "$", display: false }, {left: "\\(", right: "\\)", display: false}, {left: "\\[", right: "\\]", display: true}]})'
></script>
- smart_include:
enable: true
key: language-vega-lite
append: |
<style>
pre.language-vega-lite,
code.language-vega-lite {
display: none !important;
}
</style>
<script
src="https://cdn.jsdelivr.net/combine/npm/[email protected],npm/[email protected],npm/[email protected]"
async="async"
onload='
for(let x of document.getElementsByClassName("language-vega-lite"))
if(x.nodeName=="CODE")
{
let m = document.createElement("div");
x.parentNode.insertAdjacentElement("beforebegin", m);
vegaEmbed(m, JSON.parse(x.textContent));
}'
></script>
- smart_include:
enable: true
key: language-mermaid
append: |
<style>
pre.language-mermaid,
code.language-mermaid {
display: none !important;
}
@media only screen {
.mermaid {
overflow: hidden hidden;
max-width: 100%;
max-height: 66.6vh;
}
.mermaid {
overflow: auto auto;
}
}
</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>
post:
date: # 显示博文时间
enable: true
prepend: 发表于
wordcount: # 统计全文字数
enable: true
prepend: 总计
unit: 字
readtime: # 计算文章阅读时间
enable: true
prepend: 阅读时间
unit: 分
divided_by: 300 # 正常人的阅读速度大概每分钟三百个字
copyright:
| # 我的文章使用最宽松的知识共享协议:署名 4.0 国际 (CC BY 4.0)。您可以自由地:共享 — 在任何媒介以任何形式复制、发行本作品;演绎 — 修改、转换或以本作品为基础进行创作;在任何用途下,甚至商业目的。只要你遵守许可协议条款,许可人就无法收回你的这些权利。惟须遵守下列条件:署名 — 您必须给出适当的署名,提供指向本许可协议的链接,同时标明是否(对原始作品)作了修改。您可以用任何合理的方式来署名,但是不得以任何方式暗示许可人为您或您的使用背书。
<br/>
<a
href="https://creativecommons.org/licenses/by/4.0/deed.zh"
rel="license">
CC BY 4.0
</a>
(除特别声明或转载文章外)
<br/>
<a href="/merger/">如果这篇博客帮助到你,可以请我喝一杯咖啡~</a>
<hr/>
home: # 展示页的配置可跳过,详见<https://revealjs.com/>
append_to_section_tag:
- key: data-markdown
- key: data-separator # 水平展示页分隔符
value: <!-- .slide -->
- key: data-separator-vertical # 垂直展示页分隔符
value: <!-- .slide vertical=true -->
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>
.reveal {
--r-main-font: var(--fontStack-monospace);
--r-heading-font: var(--fontStack-monospace);
--r-code-font: var(--fontStack-monospace);
--r-main-color: var(--fgColor-default, var(--color-fg-default));
--r-heading-color: var(--fgColor-default, var(--color-fg-default));
--r-link-color: var(--fgColor-accent, var(--color-accent-fg));
--r-background-color: var(--bgColor-default, var(--color-canvas-default));
}
.reveal .slides {
text-align: left;
}
</style>
append: |
<script
src="https://cdn.jsdelivr.net/combine/npm/[email protected]/dist/reveal.min.js,npm/[email protected]/plugin/markdown/markdown.min.js,npm/[email protected]/plugin/math/math.min.js,npm/[email protected]/reveald3.min.js,npm/[email protected]/plugin/mermaid/mermaid.min.js"
onload="
for(let x of document.getElementsByClassName('wrap'))
x.classList.add('reveal');
Reveal.initialize({
scrollActivationWidth: null,
height: '100%',
mouseWheel: true,
navigationMode: 'linear',
plugins: [ RevealMarkdown,RevealMath.KaTeX,Reveald3,RevealMermaid ]
});
"></script>
compress_html: # <https://github.com/penibelst/jekyll-compress-html>
clippings: all
comments: [] # 注释不能压缩,否则 reveal.js 的 ppt切屏受影响
endings: all
ignore:
envs: all # 暂时关掉页面压缩
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-redirect-from # 站点页面重定向
- 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: pretty
timezone: Asia/Shanghai # 解决githubpage显示时间不正确的问题,见<https://www.iana.org/time-zones>
future: true # 允许发布时间在未来的文章
# 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: false
line_numbers: true
span:
disable: false
# 以下为 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