generated from halo-dev/theme-starter
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsettings.yaml
1919 lines (1906 loc) · 70.2 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-stellar-setting
spec:
forms:
- group: logo
label: logo
formSchema:
- $formkit: attachment
name: avatar
label: 图标
accepts:
- "image/*"
value: https://gcore.jsdelivr.net/gh/cdn-x/[email protected]/avatar/round/3442075.svg
- $formkit: text
name: title
label: 大标题
value: 困困鱼
- $formkit: text
name: subtitle
label: 标题
value: 风暴前夕|kunkunyu.com
help: 文字1 | 文字2 (鼠标放上去会切换到文字2)
- group: menubar
label: 侧边栏-导航菜单
formSchema:
- $formkit: number
name: columns
label: 一行多少个
value: 4
- $formkit: repeater
name: items
label: 菜单
min: 1
value:
- theme: "#1BCDFC"
icon: <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M5.879 2.879C5 3.757 5 5.172 5 8v8c0 2.828 0 4.243.879 5.121C6.757 22 8.172 22 11 22h2c2.828 0 4.243 0 5.121-.879C19 20.243 19 18.828 19 16V8c0-2.828 0-4.243-.879-5.121C17.243 2 15.828 2 13 2h-2c-2.828 0-4.243 0-5.121.879M8.25 17a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1-.75-.75M9 12.25a.75.75 0 0 0 0 1.5h6a.75.75 0 0 0 0-1.5zM8.25 9A.75.75 0 0 1 9 8.25h6a.75.75 0 0 1 0 1.5H9A.75.75 0 0 1 8.25 9" clip-rule="evenodd"/><path fill="currentColor" d="M5.235 4.058C5 4.941 5 6.177 5 8v8c0 1.823 0 3.058.235 3.942L5 19.924c-.975-.096-1.631-.313-2.121-.803C2 18.243 2 16.828 2 14v-4c0-2.829 0-4.243.879-5.121c.49-.49 1.146-.707 2.121-.803zm13.53 15.884C19 19.058 19 17.822 19 16V8c0-1.823 0-3.059-.235-3.942l.235.018c.975.096 1.631.313 2.121.803C22 5.757 22 7.17 22 9.999v4c0 2.83 0 4.243-.879 5.122c-.49.49-1.146.707-2.121.803z" opacity=".5"/></svg>
title: "博客"
url: "/"
- theme: "#3DC550"
icon: <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M14.25 4.48v3.057c0 .111 0 .27.02.406a.936.936 0 0 0 .445.683a.96.96 0 0 0 .783.072c.13-.04.272-.108.378-.159L17 8.005l1.124.534c.106.05.248.119.378.16a.958.958 0 0 0 .783-.073a.936.936 0 0 0 .444-.683c.021-.136.021-.295.021-.406V3.031c.113-.005.224-.01.332-.013C21.154 2.98 22 3.86 22 4.933v11.21c0 1.112-.906 2.01-2.015 2.08c-.97.06-2.108.179-2.985.41c-1.082.286-1.99 1.068-3.373 1.436c-.626.167-1.324.257-1.627.323V5.174c.32-.079 1.382-.203 1.674-.371c.184-.107.377-.216.576-.323m5.478 8.338a.75.75 0 0 1-.546.91l-4 1a.75.75 0 0 1-.364-1.456l4-1a.75.75 0 0 1 .91.546" clip-rule="evenodd"/><path fill="currentColor" d="M18.25 3.151c-.62.073-1.23.18-1.75.336a8.2 8.2 0 0 0-.75.27v3.182l.75-.356l.008-.005a1.13 1.13 0 0 1 .492-.13c.047 0 .094.004.138.01c.175.029.315.1.354.12l.009.005l.749.356V3.647z"/><path fill="currentColor" d="M12 5.214c-.334-.064-1.057-.161-1.718-.339C8.938 4.515 8.05 3.765 7 3.487c-.887-.234-2.041-.352-3.018-.412C2.886 3.007 2 3.9 2 4.998v11.146c0 1.11.906 2.01 2.015 2.079c.97.06 2.108.179 2.985.41c.486.129 1.216.431 1.873.726c1.005.451 2.052.797 3.127 1.034z" opacity=".5"/><path fill="currentColor" d="M4.273 12.818a.75.75 0 0 1 .91-.545l4 1a.75.75 0 1 1-.365 1.455l-4-1a.75.75 0 0 1-.545-.91m.909-4.545a.75.75 0 1 0-.364 1.455l4 1a.75.75 0 0 0 .364-1.455z"/></svg>
title: "文档"
url: "/docs"
- theme: "#FA6400"
icon: <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M20 12a8 8 0 1 1-16 0a8 8 0 0 1 16 0" opacity=".5"/><path fill="currentColor" d="M17.712 5.453c1.047-.193 2.006-.259 2.797-.152c.77.103 1.536.393 1.956 1.064c.446.714.312 1.542-.012 2.258c-.33.728-.918 1.499-1.672 2.268c-1.516 1.547-3.836 3.226-6.597 4.697c-2.763 1.472-5.495 2.484-7.694 2.92c-1.095.217-2.098.299-2.923.201c-.8-.095-1.6-.383-2.032-1.075c-.47-.752-.296-1.63.07-2.379c.375-.768 1.032-1.586 1.872-2.403L4 12.416c0 .219.083.71.168 1.146c.045.23.09.444.123.596c-.652.666-1.098 1.263-1.339 1.756c-.277.567-.208.825-.145.925c.072.116.305.305.937.38c.609.073 1.44.018 2.455-.183c2.02-.4 4.613-1.351 7.28-2.772c2.667-1.42 4.85-3.015 6.23-4.423c.694-.707 1.15-1.334 1.377-1.836c.233-.515.167-.75.107-.844c-.07-.112-.289-.294-.883-.374c-.542-.072-1.272-.041-2.163.112L16.87 5.656c.338-.101.658-.17.842-.203"/></svg>
title: "探索"
url: "/explore"
- theme: "#F44336"
icon: <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="m13.629 20.472l-.542.916c-.483.816-1.69.816-2.174 0l-.542-.916c-.42-.71-.63-1.066-.968-1.262c-.338-.197-.763-.204-1.613-.219c-1.256-.021-2.043-.098-2.703-.372a5 5 0 0 1-2.706-2.706C2 14.995 2 13.83 2 11.5v-1c0-3.273 0-4.91.737-6.112a5 5 0 0 1 1.65-1.651C5.59 2 7.228 2 10.5 2h3c3.273 0 4.91 0 6.113.737a5 5 0 0 1 1.65 1.65C22 5.59 22 7.228 22 10.5v1c0 2.33 0 3.495-.38 4.413a5 5 0 0 1-2.707 2.706c-.66.274-1.447.35-2.703.372c-.85.015-1.275.022-1.613.219c-.338.196-.548.551-.968 1.262" opacity=".5"/><path fill="currentColor" d="M10.99 14.308c-1.327-.978-3.49-2.84-3.49-4.593c0-2.677 2.475-3.677 4.5-1.609c2.025-2.068 4.5-1.068 4.5 1.609c0 1.752-2.163 3.615-3.49 4.593c-.454.335-.681.502-1.01.502c-.329 0-.556-.167-1.01-.502"/></svg>
title: "社交"
url: "/links"
children:
- $formkit: color
name: theme
label: 高亮时的颜色
help: 仅 svg 中 fill="currentColor" 时有效
- $formkit: textarea
name: icon
label: 图标
help: 支持 svg/img 标签
- $formkit: text
name: title
label: 标题
- $formkit: text
name: url
label: 链接
- group: site_tree
label: 站点主结构树
formSchema:
- $formkit: group
name: index
label: 首页
value:
leftbar:
- widget: recent_post
rightbar: []
nav_tabs:
- title: "近期发布"
url: "/"
- title: "分类"
url: "/categories"
- title: "标签"
url: "/tags"
- title: "归档"
url: "/archives"
children:
- $formkit: repeater
name: leftbar
id: leftbar
label: 左侧栏
children:
- $formkit: select
name: widget
id: widget
key: widget
label: "小工具"
options:
- value: "recent_post"
label: 最近文章
- value: "ghuser"
label: ghuser
- value: "linklist"
label: 链接
- value: "tagcloud"
label: 标签
- value: "friends"
label: 朋友圈动态
- value: "moment"
label: 瞬间动态
- value: "markdown"
label: 自定义
- $formkit: group
name: markdown
if: $value.widget == 'markdown'
key: markdown
label: 自定义内容
children:
- $formkit: text
name: title
label: 标题
value: ""
language: html
- $formkit: text
name: src
label: 内容链接
help: 可以设置外部 html 内容链接
- $formkit: code
name: content
label: 内容
height: 200px
help: 支持html语法
language: html
- $formkit: number
name: columns
value: 1
label: 链接列表-每行几个按钮
help: 为1显示为列表,2是每两个按钮放一行
- $formkit: repeater
name: items
label: 链接列表
children:
- $formkit: textarea
name: icon
label: 图标
help: 支持 svg/img 标签
validation: required
- $formkit: text
name: title
label: 标题
validation: required
- $formkit: text
name: url
label: 链接
validation: required
- $formkit: repeater
name: rightbar
id: rightbar
label: 右侧栏
children:
- $formkit: select
name: widget
id: widget
key: widget
label: "小工具"
options:
- value: "recent_post"
label: 最近文章
- value: "ghuser"
label: ghuser
- value: "linklist"
label: 链接
- value: "tagcloud"
label: 标签
- value: "friends"
label: 朋友圈动态
- value: "moment"
label: 瞬间动态
- value: "markdown"
label: 自定义
- $formkit: group
name: markdown
if: $value.widget == 'markdown'
key: markdown
label: 自定义内容
children:
- $formkit: text
name: title
label: 标题
value: ""
language: html
- $formkit: text
name: src
label: 内容链接
help: 可以设置外部 html 内容链接
- $formkit: code
name: content
label: 内容
height: 200px
help: 支持html语法
language: html
- $formkit: number
name: columns
value: 1
label: 链接列表-每行几个按钮
help: 为1显示为列表,2是每两个按钮放一行
- $formkit: repeater
name: items
label: 链接列表
children:
- $formkit: textarea
name: icon
label: 图标
help: 支持 svg/img 标签
validation: required
- $formkit: text
name: title
label: 标题
validation: required
- $formkit: text
name: url
label: 链接
validation: required
- $formkit: repeater
name: nav_tabs
label: 菜单
min: 1
children:
- $formkit: text
name: title
label: 标题
- $formkit: text
name: url
label: 链接
- $formkit: group
name: index_topic
label: 专栏列表页
value:
leftbar:
- widget: recent_post
rightbar: []
children:
- $formkit: repeater
name: leftbar
id: leftbar
label: 左侧栏
children:
- $formkit: select
name: widget
id: widget
key: widget
label: "小工具"
options:
- value: "recent_post"
label: 最近文章
- value: "linklist"
label: 链接
- value: "tagcloud"
label: 标签
- value: "friends"
label: 朋友圈动态
- value: "moment"
label: 瞬间动态
- value: "markdown"
label: 自定义
- $formkit: group
name: markdown
if: $value.widget == 'markdown'
key: markdown
label: 自定义内容
children:
- $formkit: text
name: title
label: 标题
value: ""
language: html
- $formkit: text
name: src
label: 内容链接
help: 可以设置外部 html 内容链接
- $formkit: code
name: content
label: 内容
height: 200px
help: 支持html语法
language: html
- $formkit: number
name: columns
value: 1
label: 链接列表-每行几个按钮
help: 为1显示为列表,2是每两个按钮放一行
- $formkit: repeater
name: items
label: 链接列表
children:
- $formkit: textarea
name: icon
label: 图标
help: 支持 svg/img 标签
validation: required
- $formkit: text
name: title
label: 标题
validation: required
- $formkit: text
name: url
label: 链接
validation: required
- $formkit: repeater
name: rightbar
id: rightbar
label: 右侧栏
children:
- $formkit: select
name: widget
id: widget
key: widget
label: "小工具"
options:
- value: "linklist"
label: 链接
- value: "tagcloud"
label: 标签
- value: "friends"
label: 朋友圈动态
- value: "moment"
label: 瞬间动态
- value: "markdown"
label: 自定义
- $formkit: group
name: markdown
if: $value.widget == 'markdown'
key: markdown
label: 自定义内容
children:
- $formkit: text
name: title
label: 标题
value: ""
language: html
- $formkit: text
name: src
label: 内容链接
help: 可以设置外部 html 内容链接
- $formkit: code
name: content
label: 内容
height: 200px
help: 支持html语法
language: html
- $formkit: number
name: columns
value: 1
label: 链接列表-每行几个按钮
help: 为1显示为列表,2是每两个按钮放一行
- $formkit: repeater
name: items
label: 链接列表
children:
- $formkit: textarea
name: icon
label: 图标
help: 支持 svg/img 标签
validation: required
- $formkit: text
name: title
label: 标题
validation: required
- $formkit: text
name: url
label: 链接
validation: required
- $formkit: categorySelect
name: category
label: 专栏分类
multiple: true
clearable: true
searchable: true
sortable: true
- $formkit: group
name: index_docs
label: 文档列表页
value:
leftbar:
- widget: recent_post
rightbar: []
nav_tabs:
- title: "文档"
url: "/docs"
children:
- $formkit: repeater
name: leftbar
id: leftbar
label: 左侧栏
children:
- $formkit: select
name: widget
id: widget
key: widget
label: "小工具"
options:
- value: "recent_post"
label: 最近文章
- value: "linklist"
label: linklist
- value: "markdown"
label: 自定义
- $formkit: group
name: markdown
if: $value.widget == 'markdown'
key: markdown
label: 自定义内容
children:
- $formkit: text
name: title
label: 标题
value: ""
language: html
- $formkit: text
name: src
label: 内容链接
help: 可以设置外部 html 内容链接
- $formkit: code
name: content
label: 内容
height: 200px
help: 支持html语法
language: html
- $formkit: number
name: columns
value: 1
label: 链接列表-每行几个按钮
help: 为1显示为列表,2是每两个按钮放一行
- $formkit: repeater
name: items
label: 链接列表
children:
- $formkit: textarea
name: icon
label: 图标
help: 支持 svg/img 标签
validation: required
- $formkit: text
name: title
label: 标题
validation: required
- $formkit: text
name: url
label: 链接
validation: required
- $formkit: repeater
name: rightbar
id: rightbar
label: 右侧栏
children:
- $formkit: select
name: widget
id: widget
key: widget
label: "小工具"
options:
- value: "recent_post"
label: 最近文章
- value: "linklist"
label: 链接
- value: "tagcloud"
label: 标签
- value: "friends"
label: 朋友圈动态
- value: "moment"
label: 瞬间动态
- value: "markdown"
label: 自定义
- $formkit: group
name: markdown
if: $value.widget == 'markdown'
key: markdown
label: 自定义内容
children:
- $formkit: text
name: title
label: 标题
value: ""
language: html
- $formkit: text
name: src
label: 内容链接
help: 可以设置外部 html 内容链接
- $formkit: code
name: content
label: 内容
height: 200px
help: 支持html语法
language: html
- $formkit: number
name: columns
value: 1
label: 链接列表-每行几个按钮
help: 为1显示为列表,2是每两个按钮放一行
- $formkit: repeater
name: items
label: 链接列表
children:
- $formkit: textarea
name: icon
label: 图标
help: 支持 svg/img 标签
validation: required
- $formkit: text
name: title
label: 标题
validation: required
- $formkit: text
name: url
label: 链接
validation: required
- $formkit: repeater
name: nav_tabs
label: 菜单
min: 1
children:
- $formkit: text
name: title
label: 标题
- $formkit: text
name: url
label: 链接
- $formkit: group
name: post
label: 文章
value:
leftbar:
- widget: recent_post
rightbar:
- widget: ghrepo
- widget: toc
children:
- $formkit: repeater
name: leftbar
id: leftbar
label: 左侧栏
children:
- $formkit: select
name: widget
id: widget
key: widget
label: "小工具"
options:
- value: "author"
label: 作者信息
- value: "recent_post"
label: 最近文章
- value: "linklist"
label: 链接
- value: "tagcloud"
label: 标签
- value: "friends"
label: 朋友圈动态
- value: "moment"
label: 瞬间动态
- value: "markdown"
label: 自定义
- $formkit: group
name: markdown
if: $value.widget == 'markdown'
key: markdown
label: 自定义内容
children:
- $formkit: text
name: title
label: 标题
value: ""
language: html
- $formkit: text
name: src
label: 内容链接
help: 可以设置外部 html 内容链接
- $formkit: code
name: content
label: 内容
height: 200px
help: 支持html语法
language: html
- $formkit: number
name: columns
value: 1
label: 链接列表-每行几个按钮
help: 为1显示为列表,2是每两个按钮放一行
- $formkit: repeater
name: items
label: 链接列表
children:
- $formkit: textarea
name: icon
label: 图标
help: 支持 svg/img 标签
validation: required
- $formkit: text
name: title
label: 标题
validation: required
- $formkit: text
name: url
label: 链接
validation: required
- $formkit: repeater
name: rightbar
id: rightbar
label: 右侧栏
children:
- $formkit: select
name: widget
id: widget
key: widget
label: "小工具"
options:
- value: "ghrepo"
label: ghrepo
- value: "author"
label: 作者信息
- value: "toc"
label: 目录
- value: "linklist"
label: 链接
- value: "tagcloud"
label: 标签
- value: "friends"
label: 朋友圈动态
- value: "moment"
label: 瞬间动态
- value: "markdown"
label: 自定义
- $formkit: group
name: markdown
if: $value.widget == 'markdown'
key: markdown
label: 自定义内容
children:
- $formkit: text
name: title
label: 标题
value: ""
language: html
- $formkit: text
name: src
label: 内容链接
help: 可以设置外部 html 内容链接
- $formkit: code
name: content
label: 内容
height: 200px
help: 支持html语法
language: html
- $formkit: number
name: columns
value: 1
label: 链接列表-每行几个按钮
help: 为1显示为列表,2是每两个按钮放一行
- $formkit: repeater
name: items
label: 链接列表
children:
- $formkit: textarea
name: icon
label: 图标
help: 支持 svg/img 标签
validation: required
- $formkit: text
name: title
label: 标题
validation: required
- $formkit: text
name: url
label: 链接
validation: required
- $formkit: group
name: topic
label: 专栏文章内页
value:
leftbar:
- widget: recent_post
rightbar:
- widget: toc
children:
- $formkit: repeater
name: leftbar
id: leftbar
label: 左侧栏
children:
- $formkit: select
name: widget
id: widget
key: widget
label: "小工具"
options:
- value: "recent_post"
label: 最近文章
- value: "linklist"
label: 链接
- value: "friends"
label: 朋友圈动态
- value: "moment"
label: 瞬间动态
- value: "markdown"
label: 自定义
- $formkit: group
name: markdown
if: $value.widget == 'markdown'
key: markdown
label: 自定义内容
children:
- $formkit: text
name: title
label: 标题
value: ""
language: html
- $formkit: text
name: src
label: 内容链接
help: 可以设置外部 html 内容链接
- $formkit: code
name: content
label: 内容
height: 200px
help: 支持html语法
language: html
- $formkit: number
name: columns
value: 1
label: 链接列表-每行几个按钮
help: 为1显示为列表,2是每两个按钮放一行
- $formkit: repeater
name: items
label: 链接列表
children:
- $formkit: textarea
name: icon
label: 图标
help: 支持 svg/img 标签
validation: required
- $formkit: text
name: title
label: 标题
validation: required
- $formkit: text
name: url
label: 链接
validation: required
- $formkit: repeater
name: rightbar
id: rightbar
label: 右侧栏
children:
- $formkit: select
name: widget
id: widget
key: widget
label: "小工具"
options:
- value: "ghrepo"
label: ghrepo
- value: "toc"
label: 目录
- value: "linklist"
label: 链接
- value: "friends"
label: 朋友圈动态
- value: "moment"
label: 瞬间动态
- value: "markdown"
label: 自定义
- $formkit: group
name: markdown
if: $value.widget == 'markdown'
key: markdown
label: 自定义内容
children:
- $formkit: text
name: title
label: 标题
value: ""
language: html
- $formkit: text
name: src
label: 内容链接
help: 可以设置外部 html 内容链接
- $formkit: code
name: content
label: 内容
height: 200px
help: 支持html语法
language: html
- $formkit: number
name: columns
value: 1
label: 链接列表-每行几个按钮
help: 为1显示为列表,2是每两个按钮放一行
- $formkit: repeater
name: items
label: 链接列表
children:
- $formkit: textarea
name: icon
label: 图标
help: 支持 svg/img 标签
validation: required
- $formkit: text
name: title
label: 标题
validation: required
- $formkit: text
name: url
label: 链接
validation: required
- $formkit: group
name: doc
label: 文档内页
value:
leftbar:
- widget: doc_tree
rightbar:
- widget: toc
children:
- $formkit: repeater
name: leftbar
id: leftbar
label: 左侧栏
children:
- $formkit: select
name: widget
id: widget
key: widget
label: "小工具"
options:
- value: "doc_tree"
label: 文档目录
- value: "linklist"
label: 链接
- value: "friends"
label: 朋友圈动态
- value: "moment"
label: 瞬间动态
- value: "markdown"
label: 自定义
- $formkit: group
name: markdown
if: $value.widget == 'markdown'
key: markdown
label: 自定义内容
children:
- $formkit: text
name: title
label: 标题
value: ""
language: html
- $formkit: text
name: src
label: 内容链接
help: 可以设置外部 html 内容链接
- $formkit: code
name: content
label: 内容
height: 200px
help: 支持html语法
language: html
- $formkit: number
name: columns
value: 1
label: 链接列表-每行几个按钮
help: 为1显示为列表,2是每两个按钮放一行
- $formkit: repeater
name: items
label: 链接列表
children:
- $formkit: textarea
name: icon
label: 图标
help: 支持 svg/img 标签
validation: required
- $formkit: text
name: title
label: 标题
validation: required
- $formkit: text
name: url
label: 链接
validation: required
- $formkit: repeater
name: rightbar
id: rightbar
label: 右侧栏
children:
- $formkit: select
name: widget
id: widget
key: widget
label: "小工具"
options:
- value: "toc"
label: 目录
- value: "linklist"
label: 链接
- value: "friends"
label: 朋友圈动态
- value: "moment"
label: 瞬间动态
- value: "markdown"
label: 自定义
- $formkit: group
name: markdown
if: $value.widget == 'markdown'
key: markdown
label: 自定义内容
children:
- $formkit: text
name: title
label: 标题
value: ""
language: html
- $formkit: text
name: src
label: 内容链接
help: 可以设置外部 html 内容链接
- $formkit: code
name: content
label: 内容
height: 200px
help: 支持html语法
language: html
- $formkit: number
name: columns
value: 1
label: 链接列表-每行几个按钮
help: 为1显示为列表,2是每两个按钮放一行
- $formkit: repeater
name: items
label: 链接列表
children:
- $formkit: textarea
name: icon
label: 图标
help: 支持 svg/img 标签
validation: required
- $formkit: text
name: title
label: 标题
validation: required
- $formkit: text
name: url
label: 链接
validation: required
- $formkit: group
name: author
label: 作者
value:
leftbar:
- widget: recent_post
rightbar: []
children:
- $formkit: repeater
name: leftbar
id: leftbar
label: 左侧栏
children:
- $formkit: select
name: widget
id: widget
key: widget
label: "小工具"
options:
- value: "recent_post"
label: 最近文章
- value: "linklist"
label: 链接
- value: "friends"
label: 朋友圈动态
- value: "moment"
label: 瞬间动态
- value: "markdown"
label: 自定义
- $formkit: group
name: markdown
if: $value.widget == 'markdown'
key: markdown
label: 自定义内容
children:
- $formkit: text
name: title
label: 标题
value: ""
language: html
- $formkit: text
name: src
label: 内容链接
help: 可以设置外部 html 内容链接
- $formkit: code
name: content
label: 内容