forked from chengzhongxue/halo-theme-hao
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.yaml
3662 lines (3638 loc) · 127 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
apiVersion: v1alpha1
kind: Setting
metadata:
name: theme-hao-setting
spec:
forms:
- group: basics
label: 基础
formSchema:
- $formkit: code
name: siteTitle
label: 站点名称
placeholder: 请输入站点名称
height: 80px
language: html
help: 支持 HTML 语法
- $formkit: date
name: siteStartTime
label: 建站时间
validation: required
value: "2023-08-05"
help: 注意,此项为必填项
- $formkit: text
name: icp
label: ICP 备案
placeholder: 请输入 ICP 备案号
help: 格式:皖ICP备 xxxxxxxx 号
- $formkit: text
name: gongan
label: 公安备案
placeholder: 请输入公安备案号
help: 格式:皖公网安备 xxxxxxxx 号
- $formkit: url
name: copyrightAgreement
label: 版权协议
placeholder: 请输入版权协议地址
help: 文章模块声明版权,也会使用此协议
- group: nav
label: 导航
formSchema:
- $formkit: group
name: menus
label: 菜单控制
value:
pc_leftMenu: true
phone_leftMenu: true
phone_menu: true
children:
- $formkit: radio
name: pc_leftMenu
id: pc_leftMenu
label: pc端左侧菜单
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: radio
name: phone_leftMenu
label: 移动左侧菜单
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: radio
name: phone_menu
label: 移动主菜单
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: menuRadio
name: leftMenu
if: $get(pc_leftMenu).value
label: 站点名左侧菜单
help: 默认只有主菜单,可前往【外观】—>【菜单】新建菜单组
value: ""
- $formkit: group
name: right
label: 导航栏右侧
value:
article: true
darkMode: true
navLogin: false
console:
consoleEnable: true
children:
- $formkit: radio
name: article
label: 随机文章
help: 右上角随机文章按钮
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: radio
name: darkMode
label: 切换模式
help: 右上角切换主题模式按钮
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: radio
name: navLogin
label: 登入按钮
help: 右上角登入按钮
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: group
name: console
label: 中控台
children:
- $formkit: radio
name: consoleEnable
options:
- label: 显示
value: true
- label: 隐藏
value: false
- group: top
label: 顶部
formSchema:
- $formkit: group
name: above
label: 首页第一屏
help: 开启后会在页面的最上方新增一个第一屏
value:
enable_above: false
typed:
enable_typed_random:
enable_above_video:
index_img:
phone_index_img:
index_video:
children:
- $formkit: radio
name: enable_above
key: enable_above
id: enable_above
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: repeater
name: typed
if: $get(enable_above).value
label: 打字机显示的文字
value: [ ]
children:
- $formkit: text
name: text
label: 自定义文字
placeholder: 请输入自定义文字
- $formkit: radio
label: 随机文字
if: $get(enable_above).value
name: enable_typed_random
key: enable_typed_random
id: enable_typed_random
value: false
help: 如果配置了自定义文字,优先展示自定义文字
options:
- label: 启用
value: true
- label: 禁用
value: false
- $formkit: radio
if: $get(enable_above).value
label: 背景模式
name: enable_above_video
key: enable_above_video
id: enable_above_video
value: false
options:
- label: 显示视频
value: true
- label: 显示图片
value: false
- $formkit: attachment
name: index_video
key: index_video
id: index_video
if: $get(enable_above).value && $get(enable_above_video).value
label: 动态壁纸
placeholder: 请填写动态壁纸地址
value: ""
help: http(s)://xxx.mp4
- $formkit: attachment
name: index_img
if: $get(enable_above).value && $get(enable_above_video).value == false
label: PC背景图
placeholder: 请填写背景图地址
value: https://www.dmoe.cc/random.php
- $formkit: attachment
name: phone_index_img
if: $get(enable_above).value && $get(enable_above_video).value == false
label: 移动端背景图
placeholder: 请填写移动端背景图地址
value: https://imgapi.kouseki.cn/random?sort=mp
- $formkit: group
name: global_background
label: 全局背景设置
help: 开启后设置全局背景图片/视频
value:
enable_global_background_img: false
index_background_img:
children:
- $formkit: radio
label: 全局透明背景图
name: enable_global_background_img
key: enable_global_background_img
id: enable_global_background_img
value: false
help: 首页透明背景图
options:
- label: 启用
value: true
- label: 禁用
value: false
- $formkit: radio
if: $get(enable_global_background_img).value
label: 全局背景模式
name: enable_global_background_above_video
key: enable_global_background_above_video
id: enable_global_background_above_video
value: false
options:
- label: 显示视频
value: true
- label: 显示图片
value: false
- $formkit: attachment
name: global_background_img
key: global_background_img
id: global_background_img
if: $get(enable_global_background_img).value && $get(enable_global_background_above_video).value == false
label: 全局背景图片
placeholder: 请填写全局背景图片地址
- $formkit: attachment
name: global_background_video
id: global_background_video
key: global_background_video
if: $get(enable_global_background_img).value && $get(enable_global_background_above_video).value
label: 全局背景视频
placeholder: 请填写全局背景视频地址
- $formkit: radio
name: moment
label: 瞬间说说
value: true
help: 需要安装瞬间插件
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: group
name: climb
label: 宠物挂件
help: 需要瞬间丶顶部 Banner显示
value:
climbEnable: false
climbImg: https://imgapi.yyds.pink/random?sort=animals
children:
- $formkit: radio
name: climbEnable
key: climbEnable
id: climbEnable
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: url
name: climbImg
if: $get(climbEnable).value
label: 图片
help: 随机图地址:https://imgapi.yyds.pink/random?sort=animals
- $formkit: radio
name: recentTop
id: recentTop
key: recentTop
label: 顶部 Banner
value: true
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: group
name: BannerLeft
label: Banner 左侧
if: $get(recentTop).value
value:
bannersBackgroundRollStyle: tags-group-all
bannersBackground: default
bannersTitleBig: <div class="banners-title-big">Halo Theme</div><div class="banners-title-big">Hao</div>
bannersTitleSmall: 更多信息请关注 GitHub
categoryGroup:
- title: "必看"
icon: "haofont hao-icon-book"
url: "/"
colorOneLight: "#358bff"
colorTwoLight: "#15c6ff"
colorOneDark: "#0653b8"
colorTwoDark: "#2fcbff"
- title: "热门"
icon: "haofont hao-icon-fire"
url: "/"
colorOneLight: "#ff6655"
colorTwoLight: "#ffbf37"
colorOneDark: "#e22a16"
colorTwoDark: "#da980c"
techStack:
children:
- $formkit: select
name: bannersBackground
id: bannersBackground
key: bannersBackground
label: 背景图
options:
- label: 默认技术栈
value: default
- label: 个人技术栈
value: techStack
- $formkit: repeater
name: techStack
if: $get(bannersBackground).value == 'techStack'
label: 个人技术栈
help: 需要选择上方“个人技术栈”
value: [ ]
children:
- $formkit: text
name: name
label: 名称
placeholder: 请输入名称
- $formkit: attachment
name: url
label: 路径
placeholder: 请输入图标路径
- $formkit: color
name: background
label: 背景色
- $formkit: code
name: bannersTitleBig
label: 大标题
placeholder: 请输入大标题
height: 80px
language: html
help: 支持 HTML 语法 <div class="banners-title-big">内容</div>
- $formkit: code
name: bannersTitleSmall
label: 小标题
placeholder: 请输入小标题
height: 80px
language: html
help: 支持 HTML 语法
- $formkit: repeater
name: categoryGroup
id: categoryGroup
key: categoryGroup
min: 2
max: 2
children:
- $formkit: text
name: title
label: 标题
placeholder: 请输入内容
validation: required
value: "必看精选"
- $formkit: text
name: icon
label: 图标
placeholder: 请输入内容
validation: required
value: "haofont hao-icon-book"
- $formkit: url
name: url
label: 跳转地址
placeholder: 请输入内容
validation: required
value: "/"
- $formkit: color
name: colorOneLight
label: 颜色1 (浅色)
validation: required
value: "#358bff"
- $formkit: color
name: colorTwoLight
label: 颜色2 (浅色)
validation: required
value: "#15c6ff"
- $formkit: color
name: colorOneDark
label: 颜色1 (深色)
validation: required
value: "#0653b8"
- $formkit: color
name: colorTwoDark
label: 颜色2 (深色)
validation: required
value: "#2fcbff"
- $formkit: group
name: BannerRight
label: Banner 右侧
if: $get(recentTop).value
value:
todayRecommend: true
todayRecommendContent:
todayRecommendUrl: /
todayRecommendTitle: Halo-Theme-Hao
todayRecommendCover: https://liuzhihang.com/upload/hao_dark.jpg
todayRecommendxTitle: 今日推荐
recommendPost: latest
children:
- $formkit: radio
name: todayRecommend
id: todayRecommend
key: todayRecommend
label: 今日推荐
help: 开启后会在推荐文章前显示“今日推荐”模块
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: group
name: todayRecommendContent
if: $get(todayRecommend).value
label: 今日推荐
value:
todayRecommendUrl:
todayRecommendTitle:
todayRecommendCover:
todayRecommendxTitle:
children:
- $formkit: url
name: todayRecommendUrl
label: 跳转地址
placeholder: 请输入地址
value: /
- $formkit: text
name: todayRecommendxTitle
label: 小标题
placeholder: 请输入小标题
value: 今日推荐
- $formkit: text
name: todayRecommendTitle
label: 大标题
placeholder: 请输入标题
value: Halo-Theme-Hao
- $formkit: attachment
name: todayRecommendCover
label: 背景图
placeholder: 请输入地址
value: https://liuzhihang.com/upload/hao_dark.jpg
- $formkit: select
name: recommendPost
id: recommendPost
key: recommendPost
label: 推荐文章
value: latest
options:
- label: 最新文章
value: latest
- label: 自定义
value: custom
- $formkit: repeater
if: $get(recommendPost).value === custom
name: recommendPostCustom
label: 自定义文章
help: 建议设置六篇文章
max: 6
children:
- $formkit: postSelect
name: post
label: 文章
value: ""
validation: required
- group: layout
label: 布局
formSchema:
- $formkit: group
name: navs
value:
nav: category
navCustomCategory:
navCustomTag:
navCustomUrl:
navMore:
navMoreCustomUrl:
children:
- $formkit: select
name: nav
id: nav
key: nav
label: 导航条显示内容
options:
- label: 分类
value: category
- label: 标签
value: tag
- label: 自定义分类
value: custom-category
- label: 自定义标签
value: custom-tag
- label: 自定义路径
value: custom-url
- $formkit: categorySelect
if: $get(nav).value === 'custom-category'
name: navCategory
key: navCategory
label: 自定义分类
multiple: true
clearable: true
searchable: true
sortable: true
- $formkit: checkbox
if: $get(nav).value === 'custom-category'
name: show_deprecated_items_category
key: show_deprecated_items_category
id: show_deprecated_items_category
label: 显示已过时选项
value: false
help: 这些选项将在未来的版本移除,请尽快使用替代方案
- $formkit: repeater
if: "$get(show_deprecated_items_category).value && $get(nav).value === 'custom-category'"
name: navCustomCategory
key: navCustomCategory
label: 自定义分类
value: [ ]
children:
- $formkit: categorySelect
name: category
label: 分类
- $formkit: tagSelect
if: $get(nav).value === 'custom-tag'
name: navTag
key: navTag
label: 自定义标签
multiple: true
clearable: true
searchable: true
sortable: true
- $formkit: checkbox
if: $get(nav).value === 'custom-tag'
name: show_deprecated_items_tag
key: show_deprecated_items_tag
id: show_deprecated_items_tag
label: 显示已过时选项
value: false
help: 这些选项将在未来的版本移除,请尽快使用替代方案
- $formkit: repeater
if: $get(show_deprecated_items_tag).value && $get(nav).value === 'custom-tag'
name: navCustomTag
key: navCustomTag
label: 自定义标签
value: [ ]
children:
- $formkit: tagSelect
name: tag
label: 标签
- $formkit: repeater
if: $get(nav).value === 'custom-url'
name: navCustomUrl
key: navCustomUrl
label: 自定义路径
value: [ ]
children:
- $formkit: text
name: title
label: 标题
- $formkit: url
name: url
label: 链接
- $formkit: select
name: navMore
id: navMore
key: navMore
label: 更多按钮跳转地址
value: categories
options:
- label: 隐藏
value: hide
- label: 分类
value: categories
- label: 标签
value: tags
- label: 自定义地址
value: customUrl
- $formkit: url
if: $get(navMore).value === customUrl
name: navMoreCustomUrl
label: 文章导航更多跳转路径
value:
- $formkit: group
name: post
value:
cols: col2
postLocation: top
children:
- $formkit: select
name: cols
label: 文章布局
options:
- label: 单列
value: col1
- label: 两列
value: col2
- label: 三列
value: col3
- $formkit: select
name: postLocation
label: 封面位置
options:
- label: 上方
value: top
- label: 左侧
value: left
- label: 右侧
value: right
- label: 交替
value: alternate
help: 建议单列时,将图片放在左右
- $formkit: url
name: postRandomImg
label: 随机封面
value: https://source.unsplash.com/random/600x400/?blog,scenery,night,desert,sea
help: 未设置文章封面时,将使用随机封面 (二次元随机图地址:https://www.dmoe.cc/random.php)
- $formkit: radio
name: articleCardPolish
label: 首页文章卡片(擦亮效果)
value: false
options:
- label: 显示
value: true
- label: 隐藏
value: false
- group: sidebar
label: 侧栏
formSchema:
- $formkit: select
name: location
label: 侧边栏位置
value: right-aside
options:
- value: hide-aside
label: 隐藏
- value: right-aside
label: 右侧
- value: left-aside
label: 左侧
- $formkit: group
name: widgetss
label: 侧边栏内容
value:
indexWidget:
- widget: "profile"
- widget: "wechat"
- widget: "comments"
- widget: "recent-posts"
- widget: "categories"
postWidget:
- widget: "profile"
- widget: "wechat"
- widget: "toc"
- widget: "comments"
- widget: "recent-posts"
- widget: "categories"
tagWidget:
- widget: "profile"
- widget: "wechat"
- widget: "comments"
- widget: "recent-posts"
- widget: "categories"
categoryWidget:
- widget: "profile"
- widget: "wechat"
- widget: "comments"
- widget: "recent-posts"
- widget: "categories"
pageWidget:
children:
- $formkit: repeater
name: indexWidget
id: indexWidget
label: 首页
children:
- $formkit: select
name: widget
id: widget
key: widget
label: "小工具"
options:
- value: "profile"
label: 个人卡片
- value: "wechat"
label: 公众号
- value: "power"
label: 爱发电赞助
- value: "steam"
label: Steam卡片
- value: "music"
label: 音乐卡片
- value: "friend-link"
label: 通讯录
- value: "recent-posts"
label: 最新文章
- value: "visit-posts"
label: 热门文章
- value: "comments"
label: 最新评论
- value: "categories"
label: 文章分类
- value: "tags"
label: 文章标签
- value: "stat"
label: 统计
- value: "tags-stat"
label: 标签&归档&统计
- value: "adbox"
label: 广告区域
- value: "custom_html"
label: 自定义
- $formkit: group
name: custom_html
if: $value.widget == 'custom_html'
key: custom_html
label: 自定义内容
children:
- $formkit: code
name: title
label: 标题
help: 支持html语法
height: 50px
value: <i class="haofont hao-icon-folder-open"></i><span>分类</span>
language: html
- $formkit: code
name: html
label: 内容
height: 200px
help: 支持html语法
language: html
- $formkit: repeater
name: postWidget
id: postWidget
label: 文章页
help: post 可以支持设置 toc
children:
- $formkit: select
name: widget
id: widget
key: widget
label: "小工具"
options:
- value: "profile"
label: 个人卡片
- value: "toc"
label: 目录
- value: "wechat"
label: 公众号
- value: "power"
label: 爱发电赞助
- value: "steam"
label: Steam卡片
- value: "music"
label: 音乐卡片
- value: "friend-link"
label: 通讯录
- value: "recent-posts"
label: 最新文章
- value: "visit-posts"
label: 热门文章
- value: "comments"
label: 最新评论
- value: "categories"
label: 文章分类
- value: "tags"
label: 文章标签
- value: "stat"
label: 统计
- value: "tags-stat"
label: 标签&归档&统计
- value: "adbox"
label: 广告区域
- value: "custom_html"
label: 自定义
- $formkit: group
name: custom_html
if: $value.widget == 'custom_html'
key: custom_html
label: 自定义内容
children:
- $formkit: code
name: title
label: 标题
help: 支持html语法
height: 100px
value: <i class="haofont hao-icon-folder-open"></i><span>分类</span>
language: html
- $formkit: code
name: html
label: 内容
height: 200px
help: 支持html语法
language: html
- $formkit: repeater
name: tagWidget
id: tagWidget
label: 标签页
children:
- $formkit: select
name: widget
id: widget
key: widget
label: "小工具"
options:
- value: "profile"
label: 个人卡片
- value: "wechat"
label: 公众号
- value: "power"
label: 爱发电赞助
- value: "steam"
label: Steam卡片
- value: "music"
label: 音乐卡片
- value: "friend-link"
label: 通讯录
- value: "recent-posts"
label: 最新文章
- value: "visit-posts"
label: 热门文章
- value: "comments"
label: 最新评论
- value: "categories"
label: 文章分类
- value: "tags"
label: 文章标签
- value: "stat"
label: 统计
- value: "tags-stat"
label: 标签&归档&统计
- value: "adbox"
label: 广告区域
- value: "custom_html"
label: 自定义
- $formkit: group
name: custom_html
if: $value.widget == 'custom_html'
key: custom_html
label: 自定义内容
children:
- $formkit: code
name: title
label: 标题
help: 支持html语法
height: 100px
value: <i class="haofont hao-icon-folder-open"></i><span>分类</span>
language: html
- $formkit: code
name: html
label: 内容
height: 200px
help: 支持html语法
language: html
- $formkit: repeater
id: categoryWidget
name: categoryWidget
label: 分类页
children:
- $formkit: select
name: widget
id: widget
key: widget
label: "小工具"
options:
- value: "profile"
label: 个人卡片
- value: "wechat"
label: 公众号
- value: "power"
label: 爱发电赞助
- value: "steam"
label: Steam卡片
- value: "music"
label: 音乐卡片
- value: "friend-link"
label: 通讯录
- value: "recent-posts"
label: 最新文章
- value: "visit-posts"
label: 热门文章
- value: "comments"
label: 最新评论
- value: "categories"
label: 文章分类
- value: "tags"
label: 文章标签
- value: "stat"
label: 统计
- value: "tags-stat"
label: 标签&归档&统计
- value: "adbox"
label: 广告区域
- value: "custom_html"
label: 自定义
- $formkit: group
name: custom_html
if: $value.widget == 'custom_html'
key: custom_html
label: 自定义内容
children:
- $formkit: code
name: title
label: 标题
help: 支持html语法
height: 100px
value: <i class="haofont hao-icon-folder-open"></i><span>分类</span>
language: html
- $formkit: code
name: html
label: 内容
height: 200px
help: 支持html语法
language: html
- $formkit: repeater
name: pageWidget
id: pageWidget
label: 自定义页
help: 自定义页面默认没有侧栏
children:
- $formkit: select
name: widget
id: widget
key: widget
label: "小工具"
options:
- value: "profile"
label: 个人卡片
- value: "wechat"
label: 公众号
- value: "power"
label: 爱发电赞助
- value: "steam"
label: Steam卡片
- value: "music"
label: 音乐卡片
- value: "friend-link"
label: 通讯录
- value: "recent-posts"
label: 最新文章
- value: "visit-posts"
label: 热门文章
- value: "comments"
label: 最新评论
- value: "categories"
label: 文章分类
- value: "tags"
label: 文章标签
- value: "stat"
label: 统计
- value: "tags-stat"
label: 标签&归档&统计
- value: "adbox"
label: 广告区域
- value: "custom_html"
label: 自定义
- $formkit: group
name: custom_html
if: $value.widget == 'custom_html'
key: custom_html
label: 自定义内容
children:
- $formkit: code
name: title
label: 标题
help: 支持html语法
height: 100px
value: <i class="haofont hao-icon-folder-open"></i><span>分类</span>
language: html
- $formkit: code
name: html
label: 内容
height: 200px
help: 支持html语法
language: html