forked from halo-dev/halo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
system-setting.yaml
158 lines (158 loc) · 4.55 KB
/
system-setting.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
apiVersion: v1alpha1
kind: Setting
metadata:
name: system
spec:
forms:
- group: basic
label: 基本设置
formSchema:
- $formkit: text
label: "站点标题"
name: title
validation: required
- $formkit: text
label: "站点副标题"
name: subtitle
- $formkit: attachment
label: Logo
name: logo
accepts:
- 'image/*'
- $formkit: attachment
label: Favicon
name: favicon
accepts:
- 'image/*'
- group: post
label: 文章设置
formSchema:
- $formkit: number
label: "文章列表显示条数"
name: postPageSize
value: 10
min: 1
max: 100
validation: required | max:100
- $formkit: number
label: "归档页文章显示条数"
name: archivePageSize
value: 10
min: 1
max: 100
validation: required | max:100
- $formkit: number
label: "分类页文章显示条数"
name: categoryPageSize
value: 10
min: 1
max: 100
validation: required | max:100
- $formkit: number
label: "标签页文章显示条数"
name: tagPageSize
value: 10
min: 1
max: 100
validation: required
- group: seo
label: SEO 设置
formSchema:
- $formkit: checkbox
name: blockSpiders
label: "屏蔽搜索引擎"
value: false
- $formkit: textarea
name: keywords
label: "站点关键词"
- $formkit: textarea
name: description
label: "站点描述"
- group: user
label: 用户设置
formSchema:
- $formkit: checkbox
name: allowRegistration
label: "开放注册"
value: false
- $formkit: roleSelect
name: defaultRole
label: "默认角色"
- $formkit: attachmentPolicySelect
name: avatarPolicy
label: "头像存储位置"
value: "default-policy"
- group: comment
label: 评论设置
formSchema:
- $formkit: checkbox
name: enable
value: true
label: "启用评论"
- $formkit: checkbox
name: requireReviewForNew
value: true
label: "新评论审核"
- $formkit: checkbox
name: systemUserOnly
value: true
label: "仅允许注册用户评论"
- group: routeRules
label: 主题路由设置
formSchema:
- $formkit: text
label: "分类页路由前缀"
value: "categories"
name: categories
validation: required | alphanumeric
- $formkit: text
label: "标签页路由前缀"
value: "tags"
name: tags
validation: required | alphanumeric
- $formkit: text
label: "归档页路由前缀"
value: "archives"
name: archives
validation: required | alphanumeric
- $formkit: select
label: 文章详情页访问规则
value: '/archives/{slug}'
options:
- label: '/archives/{slug}'
value: '/archives/{slug}'
- label: '/archives/{name}'
value: '/archives/{name}'
- label: '/?p={name}'
value: '/?p={name}'
- label: '/?p={slug}'
value: '/?p={slug}'
- label: '/{year}/{slug}'
value: '/{year:\d{4}}/{slug}'
- label: '/{year}/{month}/{slug}'
value: '/{year:\d{4}}/{month:\d{2}}/{slug}'
- label: '/{year}/{month}/{day}/{slug}'
value: '/{year:\d{4}}/{month:\d{2}}/{day:\d{2}}/{slug}'
name: post
validation: required
- group: codeInjection
label: 代码注入
formSchema:
- $formkit: code
language: html
height: 200px
label: "全局 head 标签"
name: globalHead
help: "注入代码到所有页面的 head 标签部分"
- $formkit: code
language: html
height: 200px
label: "内容页 head 标签"
name: contentHead
help: "注入代码到文章页面和自定义页面的 head 标签部分"
- $formkit: code
language: html
height: 200px
label: "页脚"
name: footer
help: "注入代码到所有页面的页脚部分"