-
Notifications
You must be signed in to change notification settings - Fork 3
/
settings.yaml
59 lines (59 loc) · 2.09 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
apiVersion: v1alpha1
kind: Setting
metadata:
name: theme-mainroad-setting
spec:
forms:
- group: sidebar
label: 侧边栏
formSchema:
- $formkit: checkbox
name: supportShow
id: supportShow
key: supportShow
label: 显示支持我们
value: true
- $formkit: text
name: title
if: "$get(supportShow).value"
label: 标题
value: 支持我们
- $formkit: code
if: "$get(supportShow).value"
name: desc
label: 显示的内容
language: html
value: <p>如果你喜欢 <strong>Mainroad</strong> 主题, 请您花费几秒钟给我们的 Github 仓库点个 Star</p>
- $formkit: checkbox
if: "$get(supportShow).value"
name: showGit
id: showGit
key: showGit
label: "显示 Git Star"
value: true
- $formkit: text
name: user
if: "$get(supportShow).value && $get(showGit).value"
label: Git仓库的归属
help: "https://github.com/halo-dev/halo 这里填写halo-dev"
value: liuchangfitcloud
- $formkit: text
if: "$get(supportShow).value && $get(showGit).value"
name: repo
label: 具体仓库
help: "https://github.com/halo-dev/halo 这里填写halo"
value: theme-mainroad
- group: bottombar
label: 底部
formSchema:
- $formkit: checkbox
name: showBottom
id: showBottom
key: showBottom
label: 显示底部
value: true
- $formkit: code
name: desc
if: "$get(showBottom).value"
label: 底部代码
value: <div class="container footer__container flex"><div class="footer__copyright">© 2023 Mainroad.<span class="footer__copyright-credits">Power By <a href="https://halo.run/" rel="nofollow noopener"target="_blank">Halo</a> and <a href="https://github.com/liuchangfitcloud/theme-mainroad" rel="nofollow noopener" target="_blank">Mainroad</a> theme.</span></div></div>