-
Notifications
You must be signed in to change notification settings - Fork 5
/
settings.yaml
503 lines (488 loc) · 15.1 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
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
apiVersion: v1alpha1
kind: Setting
metadata:
name: theme-ocean-setting
spec:
forms:
- group: layout
label: 布局
formSchema:
- $formkit: select
name: post_list_layout
label: 文章列表布局
value: single
options:
- label: 单条
value: single
- label: 网格(一行两列)
value: grid_2
- label: 网格(一行三列)
value: grid_3
help: "选择单条时,文章卡片的图片将位于左侧"
- $formkit: radio
name: content_header
label: 文章页顶部图片
value: false
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: radio
name: hide_avatar
id: hide_avatar
key: hide_avatar
label: 隐藏作者头像
value: false
options:
- label: 是
value: true
- label: 否
value: false
- $formkit: radio
name: hide_author
id: hide_author
key: hide_author
label: 隐藏作者名称
value: false
options:
- label: 是
value: true
- label: 否
value: false
- $formkit: text
if: "$get(hide_author).value === false"
name: common_author
label: 统一作者名称
help: "为空显示原文章作者"
- group: banner
label: Banner
formSchema:
- $formkit: text
name: custom_title
label: Banner标题
- $formkit: text
name: custom_sub_title
label: Banner副标题
- $formkit: select
name: header_background_type
id: header_background_type
key: header_background_type
label: Banner背景
value: image
options:
- label: 手动设置
value: manual
- label: 图片
value: image
- $formkit: text
if: "$get(header_background_type).value === manual"
name: header_background
id: header_background
key: header_background
label: Banner背景色
help: "填写 16 进制颜色"
- $formkit: attachment
if: "$get(header_background_type).value === image"
name: header_background_image
id: header_background_image
key: header_background_image
label: Banner背景图片
value: /themes/theme-ocean/assets/images/default-background.png
- $formkit: radio
name: search_method
value: page
label: 搜索形式
options:
- label: 页面
value: page
- label: 弹窗
value: popup
- label: 隐藏
value: none
- $formkit: tagCheckbox
name: tags
id: tags
key: tags
label: 热门查询
help: "选择多于三个标签,自动隐藏超出标签"
- group: index
label: 首页
formSchema:
- $formkit: radio
name: index_menu
id: index_menu
key: index_menu
label: 是否显示模块一
value: false
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: text
if: "$get(index_menu).value === true"
name: module_one
id: module_one
key: module_one
value: 模块一
label: 模块一名称
help: 默认显示前四个分类,字体颜色和stars数需配置分类元数据,增加 color 和 stars
- $formkit: select
if: "$get(index_menu).value === true"
name: module_one_layout
label: 模块一布局
value: 4
options:
- label: 网格(一行三列)
value: 3
- label: 网格(一行四列)
value: 4
- label: 网格(一行五列)
value: 5
help: 默认显示一行四列
- $formkit: radio
name: index_theme
id: index_theme
key: index_theme
label: 是否显示模块二
value: false
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: text
if: "$get(index_theme).value === true"
name: module_two
id: module_two
key: module_two
value: 模块二
label: 模块二名称
help: "模块二图标需配置菜单元数据,增加 icon"
- $formkit: menuRadio
if: "$get(index_theme).value === true"
name: menu
id: menu
key: menu
label: 模块二数据
help: 默认显示前四个一级菜单项
- $formkit: radio
name: index_tag
id: index_tag
key: index_tag
label: 是否显示模块三
value: false
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: text
if: "$get(index_tag).value === true"
name: module_there
id: module_there
key: module_there
value: 模块三
label: 模块三名称
- $formkit: select
if: "$get(index_tag).value === true"
name: index_recommend
id: index_recommend
key: index_recommend
label: 模块三类型
value: tag
options:
- label: 文章标签
value: tag
- label: 文章分类
value: categories
- $formkit: tagSelect
if: "$get(index_tag).value === true && $get(index_recommend).value === tag"
name: tag
id: tag
key: tag
label: 模块三数据
help: 默认显示选中标签的前六篇文章
- $formkit: categorySelect
if: "$get(index_tag).value === true && $get(index_recommend).value === categories"
name: category
id: category
key: category
label: 模块三数据
help: 默认显示选中分类的前六篇文章
- group: style
label: 样式
formSchema:
- $formkit: radio
name: color_scheme
label: 默认配色
value: light
options:
- label: 深色
value: dark
- label: 浅色
value: light
- $formkit: attachment
name: dark_logo
id: dark_logo
key: dark_logo
label: 深色Logo
help: 默认使用站点Logo
- $formkit: attachment
name: light_logo
id: light_logo
key: light_logo
label: 浅色Logo
help: 默认使用站点Logo
- $formkit: checkbox
name: enable_change_color_scheme
label: 允许访客切换配色
value: true
- $formkit: radio
name: login_info
id: login_info
key: login_info
label: 显示登录信息
value: false
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: radio
if: "$get(login_info).value === true"
name: show_content
label: 显示内容
value: all
options:
- label: 头像和名称
value: all
- label: 头像
value: avatar
- label: 名称
value: user-name
- group: sidebar
label: 侧边栏
formSchema:
- $formkit: repeater
name: widgets
label: 小部件
value:
- value: categories
- value: tags
children:
- $formkit: select
name: value
label: 部件
options:
- label: 站点资料
value: profile
- label: 热门文章
value: popular-posts
- label: 文章分类
value: categories
- label: 文章标签
value: tags
- $formkit: group
name: profile
value:
logo:
children:
- $formkit: attachment
name: logo
label: 站点资料 Logo
- $formkit: repeater
name: social_media
label: 社交媒体
value: []
children:
- $formkit: select
name: icon
label: 图标
options:
- label: 电子邮箱
value: i-tabler-mail
- label: 微信
value: i-simple-icons-wechat
- label: 腾讯 QQ
value: i-simple-icons-tencentqq
- label: 新浪微博
value: i-simple-icons-sinaweibo
- label: 知乎
value: i-simple-icons-zhihu
- label: 豆瓣
value: i-simple-icons-douban
- label: 哔哩哔哩
value: i-simple-icons-bilibili
- label: 抖音 / TikTok
value: i-simple-icons-tiktok
- label: Telegram
value: i-simple-icons-telegram
- label: Facebook
value: i-simple-icons-facebook
- label: Instagram
value: i-simple-icons-instagram
- label: LinkedIn
value: i-simple-icons-linkedin
- label: Twitter
value: i-simple-icons-twitter
- label: Slack
value: i-simple-icons-slack
- label: Discord
value: i-simple-icons-discord
- label: YouTube
value: i-simple-icons-youtube
- label: Steam
value: i-simple-icons-steam
- label: GitHub
value: i-simple-icons-github
- label: GitLab
value: i-simple-icons-gitlab
- $formkit: text
name: name
label: 名称
- $formkit: text
name: url
label: 链接
validation: "required"
- $formkit: radio
name: url_type
label: 链接类型
value: normal
help: "如果选择了图片类型,那么在访客点击之后会使用弹框的形式加载"
options:
- label: 跳转链接
value: normal
- label: 图片
value: image
- group: footer
label: 页脚
formSchema:
- $formkit: select
name: style
id: style
key: style
label: 页脚风格
value: style_1
options:
- label: 风格一
value: style_1
- label: 风格二
value: style_2
- label: 风格三
value: style_3
- label: 风格四
value: style_4
- $formkit: attachment
name: logo
label: Logo
help: 如果不设置,将使用站点设置的 Logo
- $formkit: text
name: title
label: 标题
help: 如果不设置,将使用站点设置的标题
- $formkit: textarea
rows: 3
name: slogan
id: slogan
key: slogan
if: "$get(style).value !== style_3"
label: 标语
- $formkit: menuRadio
if: "$get(style).value === style_3"
name: menu
id: menu
key: menu
label: 右侧菜单
- $formkit: repeater
if: "$get(style).value !== style_3"
name: menus
id: menus
key: menus
label: 菜单组
value: []
children:
- $formkit: menuRadio
name: name
label: 菜单
validation: "required"
- $formkit: attachment
if: "$get(style).value === style_4"
name: qrcode
label: Qrcode
help: 关注二维码
- $formkit: repeater
name: social_media
label: 社交媒体
value: []
children:
- $formkit: select
name: icon
label: 图标
options:
- label: 电子邮箱
value: i-tabler-mail
- label: 微信
value: i-simple-icons-wechat
- label: 腾讯 QQ
value: i-simple-icons-tencentqq
- label: 新浪微博
value: i-simple-icons-sinaweibo
- label: 知乎
value: i-simple-icons-zhihu
- label: 豆瓣
value: i-simple-icons-douban
- label: 哔哩哔哩
value: i-simple-icons-bilibili
- label: 抖音 / TikTok
value: i-simple-icons-tiktok
- label: Telegram
value: i-simple-icons-telegram
- label: Facebook
value: i-simple-icons-facebook
- label: Instagram
value: i-simple-icons-instagram
- label: LinkedIn
value: i-simple-icons-linkedin
- label: Twitter
value: i-simple-icons-twitter
- label: Slack
value: i-simple-icons-slack
- label: Discord
value: i-simple-icons-discord
- label: YouTube
value: i-simple-icons-youtube
- label: Steam
value: i-simple-icons-steam
- label: GitHub
value: i-simple-icons-github
- label: GitLab
value: i-simple-icons-gitlab
- $formkit: text
name: name
label: 名称
- $formkit: text
name: url
label: 链接
validation: "required"
- $formkit: radio
name: url_type
label: 链接类型
value: normal
help: "如果选择了图片类型,那么在访客点击之后会使用弹框的形式加载"
options:
- label: 跳转链接
value: normal
- label: 图片
value: image
- group: beian
label: 备案设置
formSchema:
- $formkit: text
name: icp_text
label: ICP备案号
- $formkit: text
name: icp_link
label: ICP备案跳转链接
value: https://beian.miit.gov.cn/