forked from keepli/bao
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.yaml
469 lines (468 loc) · 12.3 KB
/
settings.yaml
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
# configurations
# 详情请参考:https://halo.run/develop/theme.html#settings-yaml
genernal:
label: 通用设置
items:
home_title:
name: home_title
label: 首页展示博客名
type: text
placeholder: "用于首页展示名字"
description: "注意:如填写,会覆盖原有博客名"
home_description:
name: home_description
label: 网站slogan
type: text
placeholder: "用于首页描述"
posts_style:
name: posts_style
label: 首页文章列表展示风格
type: radio
data-type: bool
default: true
options:
- value: true
label: 卡片
- value: false
label: 列表
show_popular:
name: show_popular
label: 列表风格下是否展示热门文章
type: radio
data-type: bool
default: true
options:
- value: true
label: 是
- value: false
label: 否
card_hover_summary:
name: card_hover_summary
label: 卡片风格首页是否展示文章简介
type: radio
data-type: bool
default: false
options:
- value: true
label: 开启
- value: false
label: 关闭
home_cover:
name: home_cover
label: 首页背景
type: attachment
default: https://cdn.jsdelivr.net/gh/xzzai/static@master/uPic/default-bg.jpg
enabled_index_cover_height:
name: enabled_index_cover_height
label: 首页全屏图片
type: radio
data-type: bool
default: true
options:
- value: true
label: 开启
- value: false
label: 关闭
card_random_cover_list:
name: card_random_cover_list
label: 随机封面图片列表,分号分割
type: textarea
description: "英文分号(;)分割。注意,这里面填写了图片路径则默认开启了随机图片"
open_night_mode:
name: open_night_mode
label: 开启夜晚模式
type: radio
data-type: bool
default: true
options:
- value: true
label: 开启
- value: false
label: 关闭
auto_night_mode:
name: auto_night_mode
label: 自动夜晚模式
type: radio
data-type: bool
default: true
options:
- value: true
label: 开启
- value: false
label: 关闭
description: "这里会根据浏览器主题改变"
right_corner_circle:
name: right_corner_circle
label: 开启右下角按钮
type: radio
data-type: bool
default: true
options:
- value: true
label: 开启
- value: false
label: 关闭
default_hide_menu:
name: default_hide_menu
label: 打开展示收缩菜单按钮
type: radio
data-type: bool
default: false
options:
- value: true
label: 开启
- value: false
label: 关闭
description: "打开后会默认收缩菜单"
Icp:
name: Icp
label: "ICP 备案号"
type: text
placeholder: "填入 ICP 备案号,没有则不填. "
PublicSecurityRecord:
name: PublicSecurityRecord
label: "网安备案号"
type: text
placeholder: "填入网安备案号代码,没有则不填"
QR_code_zfb:
name: QR_code_zfb
label: "支付宝二维码图片"
type: attachment
placeholder: "支付宝收款二维码链接,不填不显示"
QR_code_wx:
name: QR_code_wx
label: "微信二维码图片"
type: attachment
placeholder: "微信收款二维码链接,不填不显示"
head_img:
label: 网页首部图片
items:
archives_patternimg:
name: archives_patternimg
label: 归档页面默认头部图
type: attachment
default: https://cdn.jsdelivr.net/gh/xzzai/static@master/uPic/default-bg.jpg
links_patternimg:
name: links_patternimg
label: 友情链接页面默认头部图
type: attachment
default: https://cdn.jsdelivr.net/gh/xzzai/static@master/uPic/default-bg.jpg
tag_patternimg:
name: tag_patternimg
label: 标签页面默认头部图
type: attachment
default: https://cdn.jsdelivr.net/gh/xzzai/static@master/uPic/default-bg.jpg
categories_patternimg:
name: categories_patternimg
label: 分类页面默认头部图
type: attachment
default: https://cdn.jsdelivr.net/gh/xzzai/static@master/uPic/default-bg.jpg
journals_patternimg:
name: journals_patternimg
label: 日志下文章页面默认头部图
type: attachment
default: https://cdn.jsdelivr.net/gh/xzzai/static@master/uPic/default-bg.jpg
photos_patternimg:
name: photos_patternimg
label: 相册页面默认头部图
type: attachment
default: https://cdn.jsdelivr.net/gh/xzzai/static@master/uPic/default-bg.jpg
search_patternimg:
name: search_patternimg
label: 搜索结果默认头部图
type: attachment
default: https://cdn.jsdelivr.net/gh/xzzai/static@master/uPic/default-bg.jpg
links_placeholder:
name: links_placeholder
label: 友情链接默认用户头像
type: attachment
default: https://cdn.jsdelivr.net/gh/xzzai/static@master/uPic/default-bg.jpg
post:
label: 文章页
items:
post_toc:
name: post_toc
label: 是否展示目录
type: radio
data-type: bool
default: true
options:
- value: true
label: 开启
- value: false
label: 关闭
post_nepre:
name: post_nepre
label: 文章页是否显示上一篇和下一篇文章
type: radio
data-type: bool
default: true
options:
- value: true
label: 开启
- value: false
label: 关闭
enabled_mathjax:
name: enabled_mathjax
label: 是否展示公式
type: radio
data-type: bool
default: true
options:
- value: true
label: 开启
- value: false
label: 关闭
enable_code_highlight:
name: enable_code_highlight
label: 是否开启代码高亮
type: radio
data-type: bool
default: false
options:
- value: true
label: 开启
- value: false
label: 关闭
enable_code_lineNumber:
name: enable_code_lineNumber
label: 代码是否展示行号(需先开启代码高亮)
type: radio
data-type: bool
default: false
options:
- value: true
label: 开启
- value: false
label: 关闭
more_lang_code:
name: more_lang_code
label: 更多代码高亮
type: radio
data-type: bool
default: false
decription: "如果目前代码高亮不支持,可以尝试开启此开关"
options:
- value: true
label: 开启
- value: false
label: 关闭
idea_code_style:
name: idea_code_style
label: IDEA代码风格
type: radio
data-type: bool
default: false
options:
- value: true
label: 开启
- value: false
label: 关闭
code_style:
name: code_style
label: 代码风格
type: select
data-type: string
default: "tomorrow-night-bright"
description: "代码风格"
options:
- value: "tomorrow-night-bright"
label: "tomorrow"
- value: "atelier-lakeside-light"
label: "atelier"
- value: "atom-one-light"
label: "atom"
- value: "github"
label: "github"
- value: "github-gist"
label: "github-gist"
- value: "kimbie.light"
label: "kimbie"
- value: "paraiso-light"
label: "paraiso"
- value: "androidstudio"
label: "androidstudio"
# enabled_mermaid:
# name: enabled_mermaid
# label: Mermaid
# type: radio
# data-type: bool
# default: false
# options:
# - value: true
# label: 开启
# - value: false
# label: 关闭
title:
label: 自定义页面标题
items:
links_title:
name: links_title
label: 友链页面标题
type: text
default: 友链
jounarls_title:
name: jounarls_title
label: 日志页面标题
type: text
default: 日志
tags_title:
name: tags_title
label: 标签页面标题
type: text
default: 标签列表
categories_title:
name: categories_title
label: 分类列表页面标题
type: text
default: 分类列表
achieve_title:
name: achieve_title
label: 归档页面标题
type: text
default: 归档
photos_title:
name: photos_title
label: 相册页面标题
type: text
default: 相册
social:
label: 社交网络
items:
sina:
name: sina
label: 新浪微博
type: text
placeholder: "用于展示底部新浪微博社交信息"
description: "新浪微博主页链接"
telegram:
name: telegram
label: Telegram
type: text
placeholder: "用于展示底部 Telegram 社交信息"
description: "Telegram 用户名"
twitter:
name: twitter
label: Twitter
type: text
placeholder: "用于展示底部 Twitter 社交信息"
description: "Twitter 主页链接"
qq:
name: qq
label: 腾讯 QQ
type: text
placeholder: "用于展示底部 QQ 社交信息"
description: "QQ 号码"
github:
name: github
label: Github
type: text
placeholder: "用于展示底部 Github 社交信息"
description: "GitHub 主页链接"
zhihu:
name: zhihu
label: 知乎
type: text
placeholder: "用于展示底部知乎社交信息"
description: "知乎主页链接"
mail:
name: mail
label: 邮箱
type: text
placeholder: "用于展示底部邮箱社交信息"
description: "邮箱地址"
rss:
name: rss
label: 订阅按钮
type: radio
data-type: bool
default: true
options:
- value: true
label: 开启
- value: false
label: 关闭
experimental:
label: 高级功能
items:
pjax_enabled:
name: pjax_enabled
label: 全局 Pjax
type: radio
data-type: bool
default: false
options:
- value: true
label: 开启
- value: false
label: 关闭
enable_image_view:
name: enable_image_view
label: 是否启用图片预览(点击全屏)
type: radio
data-type: bool
default: false
options:
- value: true
label: 开启
- value: false
label: 关闭
enable_photo:
name: enable_photo
label: 是否启用相册
type: radio
data-type: bool
default: false
options:
- value: true
label: 开启
- value: false
label: 关闭
other:
label: 其他
items:
TimeStatistics:
name: TimeStatistics
label: "站点运行时间统计"
type: text
description: "填入起始时间,格式:月/日/年 时:分:秒,如08/20/2018 12:00:00"
visit_statistics:
name: visit_statistics
label: 用户访问统计
type: radio
data-type: bool
default: false
options:
- value: true
label: 开启
- value: false
label: 关闭
Aplayer:
name: Aplayer
label: Aplayer吸底播放器
type: text
placeholder: "网易云歌单id"
description: "网易云歌单id, 比如: 60198. "
xiang_ying_xiong_zhi_jing:
name: xiang_ying_xiong_zhi_jing
label: 向英雄致敬, 愿精神长存
type: radio
data-type: bool
default: false
options:
- value: true
label: 开启
- value: false
label: 关闭
description: "惟愿此功能永远不会被使用"
other_script_file:
name: other_script_file
label: 作为插件引入的js脚本文件
type: textarea
default: ""
common_js:
name: common_js
label: 作为插件需要执行的js脚本内容
type: textarea
default: ""
description: "同时只是加载和pjax执行该脚本"