-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.yaml
393 lines (388 loc) · 13.3 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
# 配置详情请参考:https://docs.halo.run/zh/developer-guide/theme/config-files
genernal:
label: 基本设置
items:
access_key:
name: access_key
label: AccessKey <必填>
type: text
default: "fit2cloud"
placeholder: "请务必与后台中的Key一致"
description: "Access Key 用于页面中 Content API 的校验,不填会导致接口报错,默认为 fit2cloud,但可以自己定义,请不要填写中文或特殊字符(请务必同时配置此处的 Access Key 和后台管理中的 Access Key,并保持一致)"
index_notice:
name: index_notice
label: 首页公告
type: textarea
default: '欢迎来到我的博客'
favicon:
name: favicon
label: 网站图标
type: attachment
default: ""
description: "设置网站图标,不填不展示"
logo:
name: logo
label: 网站 logo
type: attachment
default: ""
description: "设置网站 logo图,不填不展示"
icp:
name: icp
label: ICP 备案号
type: text
default: ""
placeholder: "请填写 ICP 备案号信息"
description: "ICP 备案信息将展示在页脚中,不填不展示(示例:浙ICP备14038283号)"
police:
name: police
label: 公网安备号
type: text
default: ""
placeholder: "请填写公网安备号信息"
description: "公网安备信息将展示在页脚中,不填不展示,也可在 “页脚” 一栏中单独关闭(示例:浙公网安备42011102001234号)"
copyright:
name: copyright
label: 版权
type: text
default: ""
placeholder: "请填写版权信息"
description: "版权将展示在页脚中,不填不展示,也可在 “页脚” 一栏中单独关闭(示例:2014-2022 版权所有©杭州飞致云信息科技有限公司)"
tos:
name: tos
label: 网站使用条款
type: text
default: ""
placeholder: "请填写网站使用条款信息"
description: "网站使用条款将展示在页脚中,不填不展示,也可在 “页脚” 一栏中单独关闭(示例:https://www.fit2cloud.com/legal/tos.html)"
privacy_policy:
name: privacy_policy
label: 隐私权政策声明
type: text
default: ""
placeholder: "请填写隐私权政策声明信息"
description: "隐私权政策声明将展示在页脚中,不填不展示,也可在 “页脚” 一栏中单独关闭(示例:https://www.fit2cloud.com/legal/privacy-policy.html)"
licenses:
name: licenses
label: 社区软件许可协议
type: text
default: ""
placeholder: "请填写社区软件许可协议"
description: "社区软件许可协议将展示在页脚中,不填不展示,也可在 “页脚” 一栏中单独关闭(示例:https://www.fit2cloud.com/legal/licenses.html)"
# 主题
theme:
label: 主题
items:
index_source:
name: index_source
label: 首页页面
type: select
data-type: text
default: index
description: "设置首页页面具体来自哪里"
options:
- value: index
label: 默认首页
- value: archives
label: 文章页
# - value: category
# label: 分类页
# - value: tag
# label: 标签页
# - value: search
# label: 搜索页
highlight_extra_languages:
name: highlight_extra_languages
label: 文章代码高亮语言
type: textarea
description: "默认已经包含:<code>php,diff,java,css,bash,json,perl,swift,plaintext,ruby,yaml,sql,vbnet,ini,scss,less,cpp,typescript,csharp,rust,python,python-repl,objectivec,r,shell,makefile,go,xml,markdown,lua,javascript,php-template,kotlin,c</code><br>如果需要添加其他语言,请按照相同格式添加。"
highlight_style:
name: highlight_style
label: 文章代码高亮主题
type: select
default: 'default.min.css'
options:
- value: 'a11y-dark.min.css'
label: 'a11y-dark.min.css'
- value: 'a11y-light.min.css'
label: 'a11y-light.min.css'
- value: 'agate.min.css'
label: 'agate.min.css'
- value: 'an-old-hope.min.css'
label: 'an-old-hope.min.css'
- value: 'androidstudio.min.css'
label: 'androidstudio.min.css'
- value: 'arduino-light.min.css'
label: 'arduino-light.min.css'
- value: 'arta.min.css'
label: 'arta.min.css'
- value: 'ascetic.min.css'
label: 'ascetic.min.css'
- value: 'atom-one-dark-reasonable.min.css'
label: 'atom-one-dark-reasonable.min.css'
- value: 'atom-one-dark.min.css'
label: 'atom-one-dark.min.css'
- value: 'atom-one-light.min.css'
label: 'atom-one-light.min.css'
- value: 'brown-paper.min.css'
label: 'brown-paper.min.css'
- value: 'codepen-embed.min.css'
label: 'codepen-embed.min.css'
- value: 'color-brewer.min.css'
label: 'color-brewer.min.css'
- value: 'dark.min.css'
label: 'dark.min.css'
- value: 'default.min.css'
label: 'default.min.css'
- value: 'devibeans.min.css'
label: 'devibeans.min.css'
- value: 'docco.min.css'
label: 'docco.min.css'
- value: 'far.min.css'
label: 'far.min.css'
- value: 'felipec.min.css'
label: 'felipec.min.css'
- value: 'foundation.min.css'
label: 'foundation.min.css'
- value: 'github-dark-dimmed.min.css'
label: 'github-dark-dimmed.min.css'
- value: 'github-dark.min.css'
label: 'github-dark.min.css'
- value: 'github.min.css'
label: 'github.min.css'
- value: 'gml.min.css'
label: 'gml.min.css'
- value: 'googlecode.min.css'
label: 'googlecode.min.css'
- value: 'gradient-dark.min.css'
label: 'gradient-dark.min.css'
- value: 'gradient-light.min.css'
label: 'gradient-light.min.css'
- value: 'grayscale.min.css'
label: 'grayscale.min.css'
- value: 'hybrid.min.css'
label: 'hybrid.min.css'
- value: 'idea.min.css'
label: 'idea.min.css'
- value: 'intellij-light.min.css'
label: 'intellij-light.min.css'
- value: 'ir-black.min.css'
label: 'ir-black.min.css'
- value: 'isbl-editor-dark.min.css'
label: 'isbl-editor-dark.min.css'
- value: 'isbl-editor-light.min.css'
label: 'isbl-editor-light.min.css'
- value: 'kimbie-dark.min.css'
label: 'kimbie-dark.min.css'
- value: 'kimbie-light.min.css'
label: 'kimbie-light.min.css'
- value: 'lightfair.min.css'
label: 'lightfair.min.css'
- value: 'lioshi.min.css'
label: 'lioshi.min.css'
- value: 'magula.min.css'
label: 'magula.min.css'
- value: 'mono-blue.min.css'
label: 'mono-blue.min.css'
- value: 'monokai-sublime.min.css'
label: 'monokai-sublime.min.css'
- value: 'monokai.min.css'
label: 'monokai.min.css'
- value: 'night-owl.min.css'
label: 'night-owl.min.css'
- value: 'nnfx-dark.min.css'
label: 'nnfx-dark.min.css'
- value: 'nnfx-light.min.css'
label: 'nnfx-light.min.css'
- value: 'nord.min.css'
label: 'nord.min.css'
- value: 'obsidian.min.css'
label: 'obsidian.min.css'
- value: 'paraiso-dark.min.css'
label: 'paraiso-dark.min.css'
- value: 'paraiso-light.min.css'
label: 'paraiso-light.min.css'
- value: 'pojoaque.min.css'
label: 'pojoaque.min.css'
- value: 'purebasic.min.css'
label: 'purebasic.min.css'
- value: 'qtcreator-dark.min.css'
label: 'qtcreator-dark.min.css'
- value: 'qtcreator-light.min.css'
label: 'qtcreator-light.min.css'
- value: 'rainbow.min.css'
label: 'rainbow.min.css'
- value: 'routeros.min.css'
label: 'routeros.min.css'
- value: 'school-book.min.css'
label: 'school-book.min.css'
- value: 'shades-of-purple.min.css'
label: 'shades-of-purple.min.css'
- value: 'srcery.min.css'
label: 'srcery.min.css'
- value: 'stackoverflow-dark.min.css'
label: 'stackoverflow-dark.min.css'
- value: 'stackoverflow-light.min.css'
label: 'stackoverflow-light.min.css'
- value: 'sunburst.min.css'
label: 'sunburst.min.css'
- value: 'tokyo-night-dark.min.css'
label: 'tokyo-night-dark.min.css'
- value: 'tokyo-night-light.min.css'
label: 'tokyo-night-light.min.css'
- value: 'tomorrow-night-blue.min.css'
label: 'tomorrow-night-blue.min.css'
- value: 'tomorrow-night-bright.min.css'
label: 'tomorrow-night-bright.min.css'
- value: 'vs.min.css'
label: 'vs.min.css'
- value: 'vs2015.min.css'
label: 'vs2015.min.css'
- value: 'xcode.min.css'
label: 'xcode.min.css'
- value: 'xt256.min.css'
label: 'xt256.min.css'
# 页眉
header:
label: 页眉
items:
enable_header:
name: enable_header
label: 启用页眉
type: switch
data-type: bool
default: true
options:
- value: true
label: 是
- value: false
label: 否
header_banner:
name: header_banner
label: 页眉 banner
type: attachment
default: ""
description: "设置页眉 banner的背景图,不填不展示"
# 页脚
footer:
label: 页脚
items:
enable_footer:
name: enable_footer
label: 启用页脚
type: switch
data-type: bool
default: true
options:
- value: true
label: 是
- value: false
label: 否
footer_source:
name: footer_source
label: 页脚来源
type: select
data-type: text
default: theme
description: "设置页脚内容具体来自哪里,默认使用主题页脚,也可同时使用主题和后台配置的页脚。如果使用后台自定义页脚,建议复制主题的页脚 html 结构进行修改(/template/common/footer.ftl),然后粘贴到后台的页脚配置内(主题无法保证自定义页脚的样式及适配,请视具体情况设置,必要的时候请自行修改样式)"
options:
- value: theme
label: "主题页脚"
- value: backend
label: "后台页脚"
- value: both
label: "主题页脚 + 后台页脚"
footer_title:
name: footer_title
label: "页脚标题"
type: text
default: ""
placeholder: "请填写页脚标题"
description: "页脚标题信息将展示在页脚中,不填不展示(示例:FIT2CLOUD 飞致云)"
title_content:
name: title_content
label: "标题内容"
type: textarea
default: ""
placeholder: "请填写标题内容"
description: "标题内容信息将展示在页脚中,不填不展示(示例:我们秉持“软件用起来才有价值,才有改进的机会”的核心价值观, 向企业级用户交付被广泛验证、可信赖的通用工具软件。)"
contact_us:
name: contact_us
label: 联系我们
type: textarea
default: ""
placeholder: "请填写联系我们内容"
description: "联系我们内容信息将展示在页脚中,不填不展示(示例:[email protected])"
follow_us:
name: follow_us
label: 关注我们
type: attachment
default: ""
description: "设置关注我们的背景图,不填不展示"
enable_icp:
name: enable_icp
label: 展示 ICP
type: switch
data-type: bool
default: true
options:
- value: true
label: 是
- value: false
label: 否
enable_police:
name: enable_police
label: 展示公网安备
type: switch
data-type: bool
default: true
options:
- value: true
label: 是
- value: false
label: 否
enable_tos:
name: enable_tos
label: 展示网站使用条款
type: switch
data-type: bool
default: true
description: ""
options:
- value: true
label: 是
- value: false
label: 否
enable_copyright:
name: enable_copyright
label: 展示版权
type: switch
data-type: bool
default: true
options:
- value: true
label: 是
- value: false
label: 否
enable_privacy:
name: enable_privacy
label: 展示隐私条款
type: switch
data-type: bool
default: true
options:
- value: true
label: 是
- value: false
label: 否
enable_licenses:
name: enable_licenses
label: 展示社区许可协议
type: switch
data-type: bool
default: true
description: ""
options:
- value: true
label: 是
- value: false
label: 否