-
Notifications
You must be signed in to change notification settings - Fork 44
/
_config.yml
406 lines (361 loc) · 12.5 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
alternate: testName # 站点大标题
statics: "/" # 静态文件根目录
assets: "assets"
css: "css"
js: "js"
open_graph:
#twitter_id:
#google_plus:
#fb_admins:
#fb_app_id:
grayMode: false # 全站黑白滤镜
# 请注意: 本主题的PWA功能只是一个装载器,需要自备js和manifest
# 图片可通过https://lp-pwa.gitee.io/pwa-genicon/生成
pwa:
enable: false # 开启PWA功能
serviceworker: sw.js #serviceworker脚本位置,使用以/为基准的绝对路径
manifest: manifest.json #manifest位置,使用以/为基准的绝对路径
# 实验性特性
experiments:
debug: false # 使用debug模式启动
disableThemeComment: false # 禁用主题评论系统(一般用于关闭评论或让插件接管评论系统)
usingRelative: false # _image.yml 使用相对路径
optimizeLongPosts: false # 优化长文章,这能让长文章的FPS提升70%-150%并解决假死问题,但存在一些副作用
# 具体见https://docs.kaitaku.xyz/guide/theme.html#%E9%95%BF%E6%96%87%E7%AB%A0%E4%BC%98%E5%8C%96
mobileWidth: 820px # 移动版和桌面版导航栏最短切换长度
# 使用 Cloudflare Rocket 或其他优化功能时需开启下列补丁,否则主题无法渲染
cloudflarePatch: false
coverConfig:
enableCover: true # 是否开启头图
enablePreload: true #是否开启预加载头图
enableNextGradientCover: false # 使用CSS渐变作为上/下一页封面
copyrightLength: 50 # 自定义复制时显示copyright的长度
homeConfig:
gradient: false # 使用CSS渐变作为文章封面
# fixedCover 性能比默认的更好,且开启时将启用LCP优化和预加载 TODO
fixedCover: "" # 主页面cover(为空则使用bing随机图片)
# ShokaX 模块化分包引入设置
# 请关闭所有不使用的模块以优化主题 js 体积和性能
modules:
player: true # 启用音乐播放器
fireworks: true # 启用鼠标点击烟花特效
unlazyHash: false # 启用unlazy hash预览图支持
visibilityListener: true # 启用可见度监听器
tabs: true # 启用选项卡扩展支持,如需开启 summary 功能请一并开启
quiz: true # 启用文章内问题扩展支持
fancybox: true # 启用 fancybox 支持(不建议禁用)
# 优化性能区
performance:
# 使用preconnect预加载的网址(不建议超过三个)
preConnect:
- "https://s4.zstatic.net"
- "https://at.alicdn.com"
# 使用dns-prefetch预解析的网址
dnsPrefetch:
playerAPI: "https://api.injahow.cn" # 结尾不带/,只填写域名
# 如果条件允许,请参考 https://github.com/injahow/meting-api 自建API
# 使用vercel自行部署,请参考: https://github.com/xizeyoupan/Meting-API
icon:
favicon: "/favicon.ico"
apple_touch_icon: "/apple-touch-icon.png"
seo:
bing:
google:
yandex:
baidu:
visitor:
clarity: false
baiduAnalytics: false
googleAnalytics: false
darkmode: true
auto_dark: # 自动亮/暗模式
enable: true #是否开启
start: 20 #开始时间
end: 7 #结束时间
auto_scroll: false
loader:
start: true # 进入页面时显示加载动画
switch: false # 切换页面时显示加载动画
# 使用polyfill.io自动处理浏览器兼容问题
polyfill:
enable: false
features:
- default
- fetch
# 显示的动画(烟花)
# 参阅 https://github.com/D-Sketon/mouse-firework
fireworks:
enable: true
options:
excludeElements: ["a"]
particles:
- shape: circle
move: ["emit"]
easing: easeOutExpo
colors:
- "rgba(255,182,185,.9)"
- "rgba(250,227,217,.9)"
- "rgba(187,222,214,.9)"
- "rgba(138,198,209,.9)"
number: 30
duration: [1200, 1800]
shapeOptions:
radius: [16, 32]
- shape: circle
move: ["diffuse"]
easing: easeOutExpo
colors: ["#fff"]
number: 1
duration: [1200, 1800]
shapeOptions:
radius: 20
alpha: 0.5
lineWidth: 6
font:
enable: true
# 从google字体库加载,如果自定义@font-face请关闭
loadFromGoogle: true
# 字体选项:
# `external`:从google字体库加载字体.
# `family: 字体家族名,无需引号
# `size: x.x`. 以`em`为单位. 默认: 1 (16px)
# 适用于所有在body标签内的文字.
global:
external: true
family: Mulish
size:
# 大标题字体.
logo:
external: true
family: Fredericka the Great
size: 3.5
# 页面标题字体.
title:
external: true
family: Noto Serif JP
size: 2.5
# 标题字体.
headings:
external: true
family: Noto Serif SC
size:
# 文章字体.
posts:
external: false
family:
# 代码块的字体
codes:
external: true
family: Inconsolata
# //at.alicdn.com/t/c/font_4415496_59g1326wajd.css => 4415496_59g1326wajd
# 自定义iconfont图标参见文档教程
iconfont: "4415496_59g1326wajd"
menu:
home: / || home
# about:
# default: / || user
# aboutsite: /about/ || user
# admiration: /admiration/ || coffee
# posts:
# default: / || feather
# archives: /archives/ || list-alt
# categories: /categories/ || th
# tags: /tags/ || tags
# friends: /friends/ || heart
# https://twikoo.js.org
twikoo:
enable: false
mode: vercel # vercel或tencent
envId: "https://example.com" # twikoo环境ID,vercel填地址
region:
# https://waline.js.org/
waline:
enable: false
serverURL: ""
lang: "zh-CN"
locale: {} # https://waline.js.org/guide/features/i18n.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AF%AD%E8%A8%80
emoji: # 表情包
- https://unpkg.com/@waline/[email protected]/weibo
- https://unpkg.com/@waline/[email protected]/alus
- https://unpkg.com/@waline/[email protected]/bilibili
- https://unpkg.com/@waline/[email protected]/qq
- https://unpkg.com/@waline/[email protected]/tieba
- https://unpkg.com/@waline/[email protected]/tw-emoji
meta: # 可以填写的内容
- nick
- mail
- link
requiredMeta: # 必须填写的内容
- nick
- mail
wordLimit: 0 # 字数限制,0为不限制
pageSize: 10 # 每页评论条数
pageview: false # 是否开启浏览量统计,可独立开启
summary:
enable: false
introduce: "我是基于ChatGPT-turbo-3.5实现的AI助手,在此网站上负责整理和概括文章" # AI自我介绍
mode: openai # openai/custom
pricing: "trial" # trial为试用模板(3 RPM);pay为即用即付模板(60 RPM)
openai:
remote: "https://api.openai.com"
apikey: "key"
# Social Links
# Usage: `Key: permalink || icon || color`
# Key is the link label showing to end users.
# Value before `||` delimiter is the target permalink,
# secend value is the name of Font icon.
social:
github: https://github.com/yourname || github || "#191717"
#gitee: https://gitee.com/yourname || gitee || "#e60026"
#google: https://plus.google.com/yourname || google
#twitter: https://twitter.com/yourname || twitter || "#00aff0"
#zhihu: https://www.zhihu.com/people/yourname || zhihu || "#1e88e5"
#music: https://music.163.com/#/user/home?id=yourid || cloud-music || "#e60026"
#weibo: https://weibo.com/yourname || weibo || "#ea716e"
#about: https://about.me/yourname || address-card || "#3b5998"
#email: mailto:[email protected] || envelope || "#55acd5"
#facebook: https://www.facebook.com/yourname || facebook
#stackoverflow: https://stackoverflow.com/ || stack-overflow
#youtube: https://youtube.com/yourname || youtube
#instagram: https://instagram.com/yourname || instagram
#skype: skype:yourname?call|chat || skype
#douban: https://www.douban.com/people/yourname/ || douban
sidebar:
# Sidebar Position.
position: left
# position: right
# Replace the default avatar image under <root>/source/_data/assets/ and set the url here.
avatar: avatar.jpg
widgets:
# if true, will show random posts
random_posts: true
# if true, will show recent comments
recent_comments: true
footer:
# Specify the date when the site was set up. If not defined, current year will be used.
since: 2022
icon:
name: sakura rotate
# Change the color of icon, using Hex Code.
color: "#ffc0cb"
# Dependencies: https://github.com/theme-next/hexo-symbols-count-time
count: true
powered: true
lantern:
enable: true #是否开启
word1: 中 #第一个字
word2: 秋 #第二个字
icp: # ICP备案
enable: false
# 请在登录后从 https://beian.mps.gov.cn/web/business/businessHome/website 下载对应图标
icon: "" #网安备案图片
icpnumber: "xxx" # ICP备案号
beian: "xxx" # 网安备案号
recordcode: "xxx" # 网安备案链接中的recordcode参数
post:
count: true
# 文章是否失效
outime:
enable: false
days: 90 # 超过 90 天文章失效
reward:
# If true, reward will be displayed in every article by default.
enable: true
account:
wechatpay: /wechatpay.png
alipay: /alipay.png
# paypal: /paypal.png
# TagCloud settings for tags page.
tagcloud:
# All values below are same as default, change them by yourself.
min: 16 # Minimun font size in px
max: 22 # Maxium font size in px
start: "#72cecf" # Start color (hex, rgba, hsla or color keywords)
end: "#ffbac3" # End color (hex, rgba, hsla or color keywords)
amount: 200 # Amount of tags, change it if you have more than 200 tags
# ---------------------------------------------------------------
# Third Party Plugins & Services Settings
# ---------------------------------------------------------------
# Creative Commons 4.0 International License.
# See: https://creativecommons.org/share-your-work/licensing-types-examples
# Available values of license: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero
# You can set a language value if you prefer a translated version of CC license, e.g. deed.zh
# CC licenses are available in 39 languages, you can find the specific and correct abbreviation you need on https://creativecommons.org
creative_commons:
license: by-nc-sa
language: deed.zh
# bgm
# 不使用请打开noplayer功能
audio:
# - title: 列表1
# list:
# - https://music.163.com/#/playlist?id=2943811283
# - https://music.163.com/#/playlist?id=2297706586
# - title: 列表2
# list:
# - https://music.163.com/#/playlist?id=2031842656
# random image api
image_server: # "https://acg.xydwz.cn/api/api.php"
# Algolia Search
# For more information: https://www.algolia.com
search:
hits:
per_page: 10
# Dependencies: https://github.com/amehime/hexo-renderer-multi-markdown-it
pangu: false
# Quicklink Support
# For more information: https://github.com/GoogleChromeLabs/quicklink
quicklink:
# Custom a time in milliseconds by which the browser must execute prefetching.
timeout: 3000
# Default (true) will attempt to use the fetch() API if supported (rather than link[rel=prefetch]).
priority: true
# For more flexibility you can add some patterns (RegExp, Function, or Array) to ignores.
# See: https://github.com/GoogleChromeLabs/quicklink#custom-ignore-patterns
ignores:
#! ---------------------------------------------------------------
#! DO NOT EDIT THE FOLLOWING `vendors` SETTINGS
#! UNLESS YOU KNOW WHAT YOU ARE DOING
#! ---------------------------------------------------------------
vendors:
cdns:
cdnjs: https://s4.zstatic.net/ajax/libs
js:
pace:
source: cdnjs
url: pace/1.2.4/pace.min.js
sri: "sha384-k6YtvFUEIuEFBdrLKJ3YAUbBki333tj1CSUisai5Cswsg9wcLNaPzsTHDswp4Az8"
jquery:
source: cdnjs
url: jquery/3.5.1/jquery.min.js
sri: "sha384-ZvpUoO/+PpLXR1lu4jmpXWu80pZlYUAfxl5NsBMWOEPSjUn/6Z/hRTt8+pR6L4N2"
async_js:
fancybox:
source: cdnjs
url: fancybox/3.5.7/jquery.fancybox.min.js
sri: "sha384-Zm+UU4tdcfAm29vg+MTbfu//q5B/lInMbMCr4T8c9rQFyOv6PlfQYpB5wItcXWe7"
justifiedGallery:
source: cdnjs
url: justifiedGallery/3.8.1/js/jquery.justifiedGallery.min.js
sri: "sha384-TOxsBplaL96/QDWPIUg+ye3v89qSE3s22XNtJMmCeZEep3cVDmXy1zEfZvVv+y2m"
copy_tex:
source: cdnjs
url: KaTeX/0.16.9/contrib/copy-tex.min.js
sri: "sha384-ww/583aHhxWkz5DEVn6OKtNiIaLi2iBRNZXfJRiY1Ai7tnJ9UXpEsyvOITVpTl4A"
css:
katex:
source: cdnjs
url: KaTeX/0.16.9/katex.min.css
sri: "sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV"
comment:
source: local
url: css/comment.css
sri: ""
fancybox:
source: cdnjs
url: fancybox/3.5.7/jquery.fancybox.min.css
sri: "sha384-Q8BgkilbsFGYNNiDqJm69hvDS7NCJWOodvfK/cwTyQD4VQA0qKzuPpvqNER1UC0F"
justifiedGallery:
source: cdnjs
url: justifiedGallery/3.8.1/css/justifiedGallery.min.css
sri: "sha384-V/1Ew9pYm8xpy/L9i078ZXT6HSEOrGC6KNFYLbXOdtqb3+c6brpGqVzZtEPSQOiz"