forked from dhjddcn/halo-theme-butterfly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.yaml
1095 lines (1076 loc) · 33.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
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# 配置详情请参考:https://docs.halo.run/zh/developer-guide/theme/config-files
genernal:
label: 基本设置
items:
icp:
name: icp
label: ICP 备案号
type: text
default: ""
placeholder: "请填写 ICP 备案号信息"
description: "ICP 备案信息将展示在页脚中,不填不展示(示例:蜀ICP备xx号)"
police:
name: police
label: 公网安备号
type: text
default: ""
placeholder: "请填写公网安备号信息"
description: "公网安备信息将展示在页脚中,不填不展示,一栏中单独关闭(示例:蜀公网安备xx号)"
site_notice:
name: site_notice
label: 网站公告
type: textarea
placeholder: 请输入公告信息
description: "网站公告信息,将展示在页面右侧,尽量简洁明了(不填不展示该模块,也可单独开关)"
# 主题设置
theme:
label: 主题设置
items:
content_max_width:
name: content_max_width
label: 内容区最大宽度
type: text
default: "1200px"
placeholder: "请输入"
description: "限制内容区域的宽度,像素或百分比,默认1200px"
web_font:
name: web_font
label: 网站字体
type: select
default: "Butterfly Aqqxs"
description: "配置网站的字体,暂时提供 2 种供选择,也可以在 “自定义” 一栏中自定义字体来源,如果两边同时配置,优先使用自定义配置中的字体(请注意:中文字体并不能保证所有文字展示正确,请慎用!!!)"
options:
- value: "by_aqqxs.woff2"
label: "Butterfly Aqqxs"
- value: "by_slate.woff2"
label: "Butterfly Slate"
enable_top_background_img:
name: enable_top_background_img
label: 启用全局顶部背景图
type: switch
data-type: bool
default: true
description: "关闭所有页面都没用顶部图(优先级高于元数据)"
options:
- value: true
label: 是
- value: false
label: 否
enable_background_strip:
name: enable_background_strip
label: 启用全局背景彩条
type: switch
data-type: bool
default: true
description: "关闭所有页面背景上的动态彩条"
options:
- value: true
label: 是
- value: false
label: 否
body_background:
name: body_background
label: body背景图可选(url/颜色值)
type: attachment
default: "linear-gradient(90deg,rgba(247,149,51,.1) 0,rgba(243,112,85,.1) 15%,rgba(239,78,123,.1) 30%,rgba(161,102,171,.1) 44%,rgba(80,115,184,.1) 58%,rgba(16,152,173,.1) 72%,rgba(7,179,155,.1) 86%,rgba(109,186,130,.1) 100%)"
placeholder: "body背景图"
description: "设置全局背景图,建议关闭头部顶部背景图,导航栏字体浅色~"
navbar:
label: 导航栏
items:
nav_font_color:
name: nav_font_color
label: 导航栏字体颜色
type: radio
data-type: text
default: nav_font_color_light
description: "背景浅色的时候建议设置深色,背景深色建议设置浅色。可自己搭配"
options:
- value: nav_font_color_light
label: 浅色
- value: nav_font_color_dark
label: 深色
aside:
label: 侧边栏
items:
enable_aside:
name: enable_aside
label: 启用全局侧边栏
type: switch
data-type: bool
default: true
description: "是否启用侧边栏(全局),关闭后所有页面都没有侧边栏(优先级高于页面元数据)"
options:
- value: true
label: 是
- value: false
label: 否
aside_position:
name: aside_position
label: 侧边栏位置
type: radio
data-type: text
default: right
description: "侧边栏展示位置,左边或右边"
options:
- value: left
label: 左侧
- value: right
label: 右侧
site_btn:
name: site_btn
label: 信息按钮
type: textarea
placeholder: 请输入
default: "关注我||/"
description: "侧边栏按钮信息请按照格式填写否则报错 跳转文字|跳转url"
enable_newest_post:
name: enable_newest_post
label: 展示最新文章
type: switch
data-type: bool
default: true
description: "在右侧展示最新文章"
options:
- value: true
label: 开启
- value: false
label: 关闭
newest_page_size:
name: newest_page_size
label: 最新文章条数
default: 5
description: "右侧最新文章展示条数,填写数字即可,默认展示最新的5篇文章(需开启最新文章)"
# show_newreply:
# name: show_newreply
# label: 展示最新评论
# type: switch
# data-type: bool
# default: true
# description: "在右侧展示最新的评论"
# options:
# - value: true
# label: 开启
# - value: false
# label: 关闭
# newreply_page_size:
# name: newreply_page_size
# label: 最新评论条数
# type: text
# data-type: long
# default: 5
# description: "右侧最新评论展示条数,填写数字即可,默认展示最新的5条评论(需开启最新评论)"
enable_notice:
name: enable_notice
label: 展示网站公告
type: switch
data-type: bool
default: true
description: "在右侧展示公告信息模块,必须配置公告内容才生效(请在 '基本设置' 栏中配置)"
options:
- value: true
label: 开启
- value: false
label: 关闭
enable_categories:
name: enable_categories
label: 侧边栏展示分类
type: switch
data-type: bool
default: true
description: "在右侧展示分类"
options:
- value: true
label: 开启
- value: false
label: 关闭
enable_tags:
name: enable_tags
label: 侧边栏展示标签
type: switch
data-type: bool
default: true
description: "在右侧展示标签"
options:
- value: true
label: 开启
- value: false
label: 关闭
index:
label: 首页
items:
enable_top_index_background_img:
name: enable_top_index_background_img
label: 开启顶部背景图
type: switch
data-type: bool
default: true
placeholder: "开启顶部背景图"
options:
- value: true
label: 是
- value: false
label: 否
top_index_background_img:
name: top_index_background_img
label: 顶部背景图
type: attachment
default: "https://gitee.com/dhjdd/Timo/raw/master/1642841118869.png"
placeholder: "顶部背景图"
top_index_height:
name: top_index_height
label: 顶部背景图高度
type: text
default: "100vh"
placeholder: "顶部背景图高度(默认100vh)"
enable_top_index_background_fixed:
name: enable_top_index_background_fixed
label: 顶部背景图是否固定
type: switch
data-type: bool
default: true
description: "顶部背景图是否固定(产生视差效果)"
options:
- value: true
label: 是
- value: false
label: 否
enable_home_aside:
name: enable_home_aside
label: 是否展示侧边栏
type: switch
data-type: bool
default: true
description: "是否展示侧边栏"
options:
- value: true
label: 是
- value: false
label: 否
enable_random_img_api:
name: enable_random_img_api
label: 启用随机图
type: switch
data-type: bool
default: true
description: "是否启用随机图API(必须先配置 API),开启后将使用随机图填充没有设置封面的 “文章|分类|标签”,未开启时使用主题内置的封面图"
options:
- value: true
label: 是
- value: false
label: 否
random_img_api:
name: random_img_api
label: 随机图 API
type: text
default: "https://api.ixiaowai.cn/gqapi/gqapi.php"
description: "自定义随机图API,用于填充没有设置封面的 “文章|分类|标签”,为空则使用默认随机图 API,免费 API 不会一直可用,请知悉"
post_thumbnail:
name: post_thumbnail
label: 文章默认缩略图
width: 100%
type: attachment
default: "https://picsum.photos/id/1081/210/140"
description: "文章无配图时生效,可使用占位图服务(210*140)"
archives:
label: 归档
items:
archives_title:
name: archives_title
label: 归档页标题
default: "文章归档"
placeholder: "请输入"
description: "修改归档标题"
enable_top_archives_background_img:
name: enable_top_archives_background_img
label: 开启顶部背景图
type: switch
data-type: bool
default: true
placeholder: "开启顶部背景图"
options:
- value: true
label: 是
- value: false
label: 否
top_archives_background_img:
name: top_archives_background_img
label: 顶部背景图
type: attachment
default: "https://gitee.com/dhjdd/Timo/raw/master/1642841299688.png"
placeholder: "顶部背景图"
top_archives_height:
name: top_archives_height
label: 顶部背景图高度
type: text
default: "60vh"
placeholder: "顶部背景图高度(默认60vh)"
enable_top_archives_background_fixed:
name: enable_top_archives_background_fixed
label: 顶部背景图是否固定
type: switch
data-type: bool
default: true
description: "顶部背景图是否固定(产生视差效果)"
options:
- value: true
label: 是
- value: false
label: 否
enable_archives_aside:
name: enable_archives_aside
label: 是否展示侧边栏
type: switch
data-type: bool
default: true
description: "是否展示侧边栏"
options:
- value: true
label: 是
- value: false
label: 否
categories:
label: 分类
items:
categories_title:
name: categories_title
label: 分类页标题
default: "全部分类"
placeholder: "请输入"
description: "修改分类页顶部的标题"
enable_top_categories_background_img:
name: enable_top_categories_background_img
label: 开启顶部背景图
type: switch
data-type: bool
default: true
placeholder: "开启顶部背景图"
options:
- value: true
label: 是
- value: false
label: 否
top_categories_background_img:
name: top_categories_background_img
label: 顶部背景图
type: attachment
default: "https://gitee.com/dhjdd/Timo/raw/master/1642841299688.png"
placeholder: "顶部背景图"
top_categories_height:
name: top_categories_height
label: 顶部背景图高度
type: text
default: "60vh"
placeholder: "顶部背景图高度(默认60vh)"
enable_top_categories_background_fixed:
name: enable_top_categories_background_fixed
label: 顶部背景图是否固定
type: switch
data-type: bool
default: true
description: "顶部背景图是否固定(产生视差效果)"
options:
- value: true
label: 是
- value: false
label: 否
enable_categories_aside:
name: enable_categories_aside
label: 是否展示侧边栏
type: switch
data-type: bool
default: true
description: "是否展示侧边栏"
options:
- value: true
label: 是
- value: false
label: 否
tags:
label: 标签
items:
tags_title:
name: tags_title
label: 标签页标题
default: "全部标签"
placeholder: "请输入"
description: "修改标签页顶部的标题"
enable_top_tags_background_img:
name: enable_top_tags_background_img
label: 开启顶部背景图
type: switch
data-type: bool
default: true
placeholder: "开启顶部背景图"
options:
- value: true
label: 是
- value: false
label: 否
top_tags_background_img:
name: top_tags_background_img
label: 顶部背景图(标签)
type: attachment
default: "https://gitee.com/dhjdd/Timo/raw/master/1642841299688.png"
placeholder: "顶部背景图(标签)"
top_tags_height:
name: top_tags_height
label: 顶部背景图高度
type: text
default: "60vh"
placeholder: "顶部背景图高度(默认60vh)"
enable_top_tags_background_fixed:
name: enable_top_tags_background_fixed
label: 顶部背景图是否固定
type: switch
data-type: bool
default: true
description: "顶部背景图是否固定(产生视差效果)"
options:
- value: true
label: 是
- value: false
label: 否
enable_tags_aside:
name: enable_tags_aside
label: 是否展示侧边栏
type: switch
data-type: bool
default: true
description: "是否展示侧边栏"
options:
- value: true
label: 是
- value: false
label: 否
links:
label: 友链
items:
links_title:
name: links_title
label: 友链页标题
default: "友情链接"
placeholder: "请输入"
description: "修改友链页顶部展示的标题"
links_type:
name: links_type
label: 友链展示方式
type: select
data-type: text
default: list
description: "配置友链的展示方式,默认按列表顺序展示,可在后台管理中配置排序值(分组暂不支持排序)"
options:
- value: list
label: 列表
- value: group
label: 分组
enable_top_links_background_img:
name: enable_top_links_background_img
label: 开启顶部背景图
type: switch
data-type: bool
default: true
placeholder: "开启顶部背景图"
options:
- value: true
label: 是
- value: false
label: 否
top_links_background_img:
name: top_links_background_img
label: 顶部背景图(友链)
type: attachment
default: "https://gitee.com/dhjdd/Timo/raw/master/1642841299688.png"
placeholder: "顶部背景图(友链)"
top_links_height:
name: top_links_height
label: 顶部背景图高度
type: text
default: "60vh"
placeholder: "顶部背景图高度(默认60vh)"
enable_top_links_background_fixed:
name: enable_top_links_background_fixed
label: 顶部背景图是否固定
type: switch
data-type: bool
default: true
description: "顶部背景图是否固定(产生视差效果)"
options:
- value: true
label: 是
- value: false
label: 否
enable_links_aside:
name: enable_links_aside
label: 是否展示侧边栏
type: switch
data-type: bool
default: true
description: "是否展示侧边栏"
options:
- value: true
label: 是
- value: false
label: 否
journals:
label: 日志
items:
journals_title:
name: journals_title
label: 日志页标题
default: "我的动态"
placeholder: "请输入"
description: "修改日志页顶部展示的标题"
enable_top_journals_background_img:
name: enable_top_journals_background_img
label: 开启顶部背景图
type: switch
data-type: bool
default: true
placeholder: "开启顶部背景图"
options:
- value: true
label: 是
- value: false
label: 否
top_journals_background_img:
name: top_journals_background_img
label: 顶部背景图
type: attachment
default: "https://gitee.com/dhjdd/Timo/raw/master/1642841299688.png"
placeholder: "顶部背景图"
top_journals_height:
name: top_journals_height
label: 顶部背景图高度
type: text
default: "60vh"
placeholder: "顶部背景图高度(默认60vh)"
enable_top_journals_background_fixed:
name: enable_top_journals_background_fixed
label: 顶部背景图是否固定
type: switch
data-type: bool
default: true
description: "顶部背景图是否固定(产生视差效果)"
options:
- value: true
label: 是
- value: false
label: 否
enable_journals_aside:
name: enable_journals_aside
label: 是否展示侧边栏
type: switch
data-type: bool
default: true
description: "是否展示侧边栏"
options:
- value: true
label: 是
- value: false
label: 否
journals_comment:
name: journals_comment
label: 评论功能
type: switch
data-type: bool
default: true
placeholder: "开启自定义页评论功能"
options:
- value: true
label: 是
- value: false
label: 否
comment:
label: 评论框
items:
gravatar_source:
name: gravatar_source
label: 评论头像源
type: text
default: "https://gravatar.orangejx.cn/avatar"
placeholder: 请输入源地址,末尾不需要斜杠
description: "用于修改全站评论的头像源地址(优先取主题中配置的源,取不到时才从后台管理中取),默认为 https://gravatar.orangejx.cn/avatar(若头像显示不出来,请自行更换源)。关于头像类型,可以到 “后台管理-系统-博客设置-评论设置” 中配置"
enable_comment_autoload:
name: enable_comment_autoload
label: 自动加载评论
type: switch
data-type: bool
default: true
description: "是否自动加载评论数据,分页大小可在 “后台管理-系统-博客设置-评论设置-每页显示条数” 中统一配置"
options:
- value: true
label: 开启
- value: false
label: 关闭
enable_comment_ua:
name: enable_comment_ua
label: 展示评论者UA信息
type: switch
data-type: bool
default: false
description: "用来控制全局评论组件中是否展示评论者的UA信息(浏览器、操作系统等)"
options:
- value: true
label: 开启
- value: false
label: 关闭
comment_loading_style:
name: comment_loading_style
label: 评论加载样式
type: radio
data-type: text
default: default
description: "选择加载评论时的样式"
options:
- value: default
label: 默认
- value: circle
label: 圆圈
- value: balls
label: 小球
comment_aword:
name: comment_aword
label: "评论框内的一言"
type: text
default: "你是我一生只会遇见一次的惊喜 ..."
placeholder: 请输入
description: "输入内容时展示的的一言内容"
comment_author_poptext:
name: comment_author_poptext
label: "提示文案(输入昵称时)"
type: text
default: "你的昵称是啥呢?"
placeholder: 请输入
description: "填写昵称时的提示文字"
comment_email_poptext:
name: comment_email_poptext
label: "提示文案(输入邮箱时)"
type: text
default: "你将收到回复通知"
placeholder: 请输入
description: "填写邮箱时的提示文字"
comment_url_poptext:
name: comment_url_poptext
label: "提示文案(输入url地址时)"
type: text
default: "禁止小广告😀"
placeholder: 请输入
description: "填写网站地址时的提示文字"
# comment_avatar_error:
# name: comment_avatar_error
# label: 缺省头像
# type: text
# placeholder: 请输入
# default: "/themes/butterfly/source/img/error_avatar.jpg"
# description: "当评论头像加载不出来时展示的默认头像"
# comment_avatar_loading:
# name: comment_avatar_loading
# label: 头像加载图
# type: text
# placeholder: 请输入
# default: "/themes/butterfly/source/img/loading.gif"
# description: "头像加载时展示的loading图片"
comment_empty_text:
name: comment_empty_text
label: 无评论时的文案
type: text
default: "暂无评论"
placeholder: 请输入
description: "没有评论数据时显示的文字"
comment_custom_style:
name: comment_custom_style
label: 自定义评论组件CSS样式
type: textarea
description: '确保样式以 .halo-comment 开头,防止污染其他 css。如果属性不生效,则加上 !important 提升优先度'
sheet:
label: 自定义
items:
enable_top_sheet_background_img:
name: enable_top_sheet_background_img
label: 开启顶部背景图
type: switch
data-type: bool
default: true
placeholder: "开启顶部背景图"
options:
- value: true
label: 是
- value: false
label: 否
top_sheet_background_img:
name: top_sheet_background_img
label: 顶部背景图
type: attachment
default: "https://gitee.com/dhjdd/Timo/raw/master/1642841299688.png"
placeholder: "顶部背景图"
top_sheet_height:
name: top_sheet_height
label: 顶部背景图高度
type: text
default: "60vh"
placeholder: "顶部背景图高度(默认60vh)"
enable_top_sheet_background_fixed:
name: enable_top_sheet_background_fixed
label: 顶部背景图是否固定
type: switch
data-type: bool
default: true
description: "顶部背景图是否固定(产生视差效果)"
options:
- value: true
label: 是
- value: false
label: 否
sheet_comment:
name: sheet_comment
label: 评论功能
type: switch
data-type: bool
default: true
placeholder: "开启自定义页评论功能"
options:
- value: true
label: 是
- value: false
label: 否
code_block:
label: 代码块
items:
# enable_code_copy:
# name: enable_code_copy
# label: 代码复制
# type: switch
# data-type: bool
# default: true
# description: 开启代码块复制按钮
# options:
# - value: true
# label: 开启
# - value: false
# label: 关闭
# enable_code_expander:
# name: enable_code_expander
# label: 代码折叠
# type: switch
# data-type: bool
# default: false
# description: "开启代码块折叠功能"
# options:
# - value: true
# label: 开启
# - value: false
# label: 关闭
# fold_long_code:
# name: fold_long_code
# label: 自动折叠长代码块
# type: switch
# data-type: bool
# default: false
# description: "自动折叠 <文章页> 中内容很长的代码块,提高阅读效率,此操作会出现布局偏移,可能带来一些滚动相关问题,如无必要不建议开启(必须先开启“代码折叠”选项,否则无效)"
# options:
# - value: true
# label: 开启
# - value: false
# label: 关闭
# long_code_height:
# name: long_code_height
# label: 自动折叠的高度
# type: text
# data-type: long
# default: 800
# placeholder: "请输入数字"
# description: "触发长代码块自动折叠的高度(单位px),只填数字即可(默认800),填 0 将折叠所有代码块"
code_theme:
name: code_theme
label: 代码主题
type: select
data-type: string
default: "one-dark"
description: "设置代码块主题,可通过后台元数据为每篇文章设置单独的代码主题,主题来自 prism-themes,见https://github.com/PrismJS/prism-themes"
options:
- value: "one-dark"
label: "one-dark"
- value: "one-light"
label: "one-light"
- value: "a11y-dark"
label: "a11y-dark"
- value: "atom-dark"
label: "atom-dark"
- value: "base16-ateliersulphurpool.light"
label: "base16-ateliersulphurpool.light"
- value: "cb"
label: "cb"
- value: "coldark-cold"
label: "coldark-cold"
- value: "coldark-dark"
label: "coldark-dark"
- value: "coy-without-shadows"
label: "coy-without-shadows"
- value: "darcula"
label: "darcula"
- value: "dracula"
label: "dracula"
- value: "duotone-dark"
label: "duotone-dark"
- value: "duotone-earth"
label: "duotone-earth"
- value: "duotone-forest"
label: "duotone-forest"
- value: "duotone-light"
label: "duotone-light"
- value: "duotone-sea"
label: "duotone-sea"
- value: "duotone-space"
label: "duotone-space"
- value: "ghcolors"
label: "ghcolors"
- value: "gruvbox-dark"
label: "gruvbox-dark"
- value: "gruvbox-light"
label: "gruvbox-light"
- value: "holi-theme"
label: "holi-theme"
- value: "hopscotch"
label: "hopscotch"
- value: "lucario"
label: "lucario"
- value: "material-dark"
label: "material-dark"
- value: "material-light"
label: "material-light"
- value: "material-oceanic"
label: "material-oceanic"
- value: "night-owl"
label: "night-owl"
- value: "nord"
label: "nord"
- value: "pojoaque"
label: "pojoaque"
- value: "shades-of-purple"
label: "shades-of-purple"
- value: "solarized-dark-atom"
label: "solarized-dark-atom"
- value: "synthwave84"
label: "synthwave84"
- value: "vs"
label: "vs"
- value: "vsc-dark-plus"
label: "vsc-dark-plus"
- value: "xonokai"
label: "xonokai"
- value: "z-touch"
label: "z-touch"
post:
label: 文章
items:
enable_post_aside:
name: enable_post_aside
label: 是否展示侧边栏
type: switch
data-type: bool
default: true
description: "是否展示侧边栏"
options:
- value: true
label: 是
- value: false
label: 否
enable_top_post_background_img:
name: enable_top_post_background_img
label: 开启顶部背景图
type: switch
data-type: bool
default: true
placeholder: "开启顶部背景图"
options:
- value: true
label: 是
- value: false
label: 否
enable_top_random_img:
name: enable_top_random_img
label: 开启顶部背景图随机图API
type: switch
data-type: bool
default: true
placeholder: "开启顶部背景图随机图API"
options:
- value: true
label: 是
- value: false
label: 否
# enable_aside_expander:
# name: enable_aside_expander
# label: 展示侧边栏切换按钮
# type: switch
# data-type: bool
# default: true
# description: "文章页顶部显示用于切换侧边栏显示/隐藏状态的按钮(仅在展示侧边栏情况下生效)"
# options:
# - value: true
# label: 是
# - value: false
# label: 否
top_post_height:
name: top_post_height
label: 顶部背景图高度
type: text
default: "60vh"
placeholder: "顶部背景图高度(默认60vh)"
enable_top_post_background_fixed:
name: enable_top_post_background_fixed
label: 顶部背景图是否固定
type: switch
data-type: bool
default: true
description: "顶部背景图是否固定(产生视差效果)"
options:
- value: true
label: 是
- value: false
label: 否
enable_donate:
name: enable_donate
label: 开启打赏
type: switch
data-type: bool
default: false
options:
- value: true
label: 开启
- value: false
label: 关闭
qrcode_zfb:
name: qrcode_zfb
label: "支付宝二维码"
type: attachment
default: ""
placeholder: "打赏用的支付宝收款二维码链接,不填不显示"
qrcode_wx:
name: qrcode_wx
label: "微信二维码"
type: attachment
default: ""
placeholder: "打赏用的微信收款二维码链接,不填不显示"
post_comment:
name: post_comment
label: 评论功能
type: switch
data-type: bool
default: true
placeholder: "开启自定义页评论功能"
options:
- value: true
label: 是
- value: false
label: 否
social:
label: 社交
items:
email:
name: email
label: 邮箱
type: text
default: ""
placeholder: "邮箱地址"
github:
name: github
label: Github
type: text
default: ""