forked from wu-kan/wu-kan.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_config.yml
277 lines (261 loc) · 8.94 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
title: wu-kan
url: http://wu-kan.github.io
baseurl: '' # 假如你的博客是建在某个目录下的,请在这里加上目录名,并且下面配置的所有链接里的`/public`前也要加,即`/your_baseurl/public`。这一项结尾不要有'/'
author: WuK
permalink: /posts/:categories/:title # 博文目录
head: # 删改前确定知道自己在做什么
- tag: meta # Enable responsiveness on mobile devices
var:
- key: name
value: viewport
- key: content
value: width=device-width, initial-scale=1.0, maximum-scale=1
- tag: meta
var:
- key: http-equiv
value: X-UA-Compatible
- key: content
value: IE=edge
- tag: meta
var:
- key: http-equiv
value: content-type
- key: content
value: 'text/html; charset=utf-8'
- tag: meta # google站点验证
var:
- key: name
value: google-site-verification
- key: content
value: YIKi1rBnyUaS-DMYiluseI5kZzTwjCkTFmKkSkMZDJk
- tag: meta # baidu站点验证
var:
- key: name
value: baidu-site-verification
- key: content
value: bEFDJ1LvXb
- tag: meta # yandex站点验证
var:
- key: name
value: yandex-verification
- key: content
value: 52253e02830b443c
- tag: link
var:
- key: rel
value: profile
- key: href
value: //gmpg.org/xfn/11
- tag: link # rss
var:
- key: rel
value: alternate
- key: href
value: /atom.xml
- key: title
value: RSS
- key: type
value: application/rss+xml
- tag: link # 网站大图标,我偷懒直接用gravatar了,也可以存在/public里面
var:
- key: rel
value: apple-touch-icon-precomposed
- key: href
value: //www.gravatar.com/avatar/a12c5fff23dde00df79af9aca4e7b6e4?d=wavatar&s=144
- tag: link # 小图标,同上
var:
- key: rel
value: 'shortcut icon'
- key: href
value: //www.gravatar.com/avatar/a12c5fff23dde00df79af9aca4e7b6e4?d=wavatar&s=32
- tag: link # 下面是博客的css,有些插件的css是单独在插件里引用的,假如需要自己的css可以仿照去加在后面。无脑cdn加速了。
var:
- key: rel
value: stylesheet
- key: href
value: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io/public/css/poole.css # 用cdn加速会出问题,暂时不知道为什么
- tag: link
var:
- key: rel
value: stylesheet
- key: href
value: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io/public/css/syntax.css
- tag: link
var:
- key: rel
value: stylesheet
- key: href
value: //cdn.jsdelivr.net/gh/wu-kan/wu-kan.github.io/public/css/lanyon.css
- tag: link
var:
- key: rel
value: stylesheet
- key: href
value: /public/css/wu-kan.css
- tag: link
var:
- key: rel
value: stylesheet
- key: href
value: //cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.css # 在https://fontawesome.com/icons 查看支持的图标
body:
theme-base: theme-base-0d # 可选的值08~0f
layout-reverse: true # 开启后sidebar在右边,反之左边
sidebar-overlay: false # 开启后正文不随sidebar移动而移动 #此选项现失效,待修,当前这个选项仅能对sidebar的阴影产生影响
script: # 需要在正文后调用的脚本
- src: //cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js # jQuery
- src: //cdn.jsdelivr.net/npm/ribbon.js/dist/ribbon.min.js # 彩带背景
- src: //cdn.jsdelivr.net/npm/prismjs/components/prism-core.min.js
- src: //cdn.jsdelivr.net/npm/prismjs/plugins/autoloader/prism-autoloader.min.js
- src: //cdn.jsdelivr.net/npm/prismjs/plugins/line-numbers/prism-line-numbers.min.js
- src: //cdn.jsdelivr.net/npm/prismjs/plugins/toolbar/prism-toolbar.min.js
- src: //cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget/autoload.js # live2d
- src: /public/js/prism.js
- src: /public/js/mermaid.js
- src: /public/js/katex.js
- src: /public/js/baidu_push.js
mermaid: # https://github.com/knsv/mermaid
enable: true
src: //cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js
stylesheet: //cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.css
markdown_expand: true
PrismJS: # 代码高亮插件,可以在https://prismjs.com/download.html自己定制,我这里只导入了三个自己喜欢的插件。
enable: true
src:
- stylesheet: //cdn.jsdelivr.net/npm/prismjs/themes/prism-coy.css # 在https://github.com/PrismJS/prism/tree/master/themes 内查看可用主题,或者也可以搜一些第三方主题
- stylesheet: //cdn.jsdelivr.net/npm/prismjs/plugins/line-numbers/prism-line-numbers.css
- stylesheet: //cdn.jsdelivr.net/npm/prismjs/plugins/toolbar/prism-toolbar.css
plugins:
line_numbers: true
autoloader: //cdn.jsdelivr.net/npm/prismjs/components/ # 根据语言自动加载的高亮插件
toolbar:
show_language:
enable: true
text: 猜猜这是什么语言?
alert: 用的是
select_code:
enable: true
innerHTML: 选中这段代码?
katex: # KaTeX
enable: true
stylesheet: //cdn.jsdelivr.net/npm/katex/dist/katex.min.css
src: //cdn.jsdelivr.net/npm/katex/dist/katex.min.js
auto-render: //cdn.jsdelivr.net/npm/katex/dist/contrib/auto-render.min.js
delimiters: true # 开启行内公式$\KaTeX$支持
sidebar:
avatar: # 侧边栏显示的头像
enable: true
img: //www.gravatar.com/avatar/a12c5fff23dde00df79af9aca4e7b6e4?d=wavatar&s=600 # 头像的地址
info: <br>SYSU17级在读<br>计科超算方向<br>永远喜欢水野爱<br>田宫例四驱车<br>ACMer # 头像背后的信息
description: '<iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=100% height=52 src="//music.163.com/outchain/player?type=0&id=155059595&auto=0&height=32"></iframe>'
social:
# - title: rss
# href: /atom.xml
# class: 'fas fa-rss fa-fw' # rss图标加载不了不知道为什么
- title: [email protected] # email
href: mailto:[email protected]
class: 'fas fa-envelope fa-fw'
- title: 942759535 # qq
class: 'fab fa-qq fa-fw'
- title: Wu-_-Kan # weixin
class: 'fab fa-weixin fa-fw'
- title: zhihu
href: //www.zhihu.com/people/wu.kan/activities
class: 'fab fa-zhihu fa-fw'
- title: github # email
href: //github.com/wu-kan
class: 'fab fa-github fa-fw'
- title: WuK # codeforces
href: //codeforces.com/profile/WuK
class: 'far fa-chart-bar fw'
- title: WuK # vjudge
href: //vjudge.net/user/WuK
class: 'far fa-smile fa-fw'
nav:
- title: '<i class="fas fa-home fa-fw"></i> 首页'
href: /
- title: '<i class="fab fa-readme fa-fw"></i> 关于'
href: /about
- 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
simple_jekyll_search:
enable: true
src: //cdn.jsdelivr.net/npm/simple-jekyll-search/dest/simple-jekyll-search.min.js
placeholder: 搜索博文
json: /public/simple-jekyll-search/search.json
jekyll_table_of_contents:
enable: true
src: //cdn.jsdelivr.net/gh/ghiculescu/jekyll-table-of-contents/toc.js
busuanzi:
enable: true
src: //cdn.jsdelivr.net/npm/busuanzi/bsz.pure.mini.js
page_pv: # 页面访问量
alert: <i class="fas fa-eye fa-fw"></i>
unit: 次
site_pv: # 站点访问量
alert: <i class="fas fa-paw fa-fw"></i>
unit: 枚
site_uv: # 访客量
alert: <i class="fas fa-user-friends fa-fw"></i>
unit: 人
run_time:
enable: true
start_time: '10/04/2017 11:03:56' # 这是我第一篇CSDN博客的时间
alert: <i class="fas fa-cog fa-spin fa-fw"></i>
day: 天
hour: 时
minute: 分
second: 秒
copyright:
enable: true
text: <a href="//github.com/wu-kan/wu-kan.github.io">View on GitHub</a>
post:
meta:
enable: true
date: true
wordcount:
enable: true
unit: 字
readtime:
enable: true
unit: 分
divided_by: 300
visitor: # 需要开启valine的visitor选项使之开始计数; 可能会和busuanzi统计的有出入
enable: true
unit: 次
copyright: '<i class="fab fa-creative-commons"></i> <a rel="license" href="//creativecommons.org/licenses/by-sa/4.0/deed.zh">BY-SA 4.0</a>(除特别声明或转载文章外)'
related:
enable: false
title: 相关博文
reward:
enable: true
text: 如果我的博客帮助到你,可以请我喝一杯咖啡~
img: # 万一真的有人打赏呢~
- id: wechat
src: /public/image/wechatpay.jpg
- id: alipay
src: /public/image/alipay.jpg
valine:
enable: true
src: //cdn.jsdelivr.net/npm/valine
appId: 9hABRddSuEkTgqLrt1VSK5B1-gzGzoHsz
appKey: NJ7RwmgrxsF7KDzlqU7YewlL
notify: true # 评论回复邮件提醒
verify: true # 验证码服务
avatar: identicon
placeholder: 在这里评论吧!
visitor: true # 文章访问量统计
highlight: true # 代码高亮
avatarForce: false # 每次访问强制拉取最新的评论列表头像
recordIP: true # 记录评论者IP
page404:
search_children: # 腾讯公益
enable: true
src: //qzonestyle.gtimg.cn/qzone/hybrid/app/404/search_children.js
charset: utf-8
homePageUrl: '/'
homePageName: 回到我的主页