forked from xzhuz/halo-theme-xue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.yaml
315 lines (315 loc) · 7.93 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
# configurations
# 详情请参考:https://halo.run/develop/theme.html#settings-yaml
genernal:
label: 通用设置
items:
show_logo:
name: show_logo
label: LOGO展示
type: radio
data-type: bool
default: false
options:
- value: true
label: 是
- value: false
label: 否
pjax_enabled:
name: pjax_enabled
label: 全局 Pjax
type: radio
data-type: bool
default: false
options:
- value: true
label: 开启
- value: false
label: 关闭
Icp:
name: Icp
label: "ICP 备案号"
type: text
placeholder: "填入 ICP 备案号,没有则不填. "
PoliceSecurityRecordCode:
name: PoliceSecurityRecordCode
label: "网安备案号编码"
type: text
placeholder: "网安备案号编码,用于链接跳转"
PublicSecurityRecord:
name: PublicSecurityRecord
label: "网安备案号"
type: text
placeholder: "填入网安备案号文字"
card_random_cover_list:
name: card_random_cover_list
label: 随机封面图片列表,分号分割
type: textarea
description: "英文分号(;)分割。注意,这里面填写了图片路径则默认开启了随机图片"
home_setting:
label: 首页设置
items:
home_cover:
name: home_cover
label: 首页背景
type: attachment
default: https://cdn.jsdelivr.net/gh/xzzai/static@master/uPic/default-bg.jpg
home_title:
name: home_title
label: 首页展示博客名
type: text
placeholder: "用于首页展示名字"
description: "注意:如填写,会覆盖原有博客名"
home_description:
name: home_description
label: 网站slogan
type: text
placeholder: "用于首页描述"
enabled_index_cover_height:
name: enabled_index_cover_height
label: 首页全屏图片
type: radio
data-type: bool
default: true
options:
- value: true
label: 开启
- value: false
label: 关闭
posts_style:
name: posts_style
label: 首页文章列表展示风格
type: radio
data-type: bool
default: true
options:
- value: true
label: 卡片
- value: false
label: 列表
post_card_meta_info:
name: post_card_meta_info
label: 卡片是否展示元数据
type: radio
data-type: bool
default: false
options:
- value: true
label: 展示
- value: false
label: 隐藏
post_card_tag:
name: post_card_tag
label: 卡片是否展示标签
type: radio
data-type: bool
default: false
options:
- value: true
label: 展示
- value: false
label: 隐藏
show_popular:
name: show_popular
label: 列表风格下是否展示热门文章
type: radio
data-type: bool
default: false
options:
- value: true
label: 是
- value: false
label: 否
head_img:
label: 网页头部图片
items:
archives_patternimg:
name: archives_patternimg
label: 归档页面默认头部图
type: attachment
links_patternimg:
name: links_patternimg
label: 友情链接页面默认头部图
type: attachment
tag_patternimg:
name: tag_patternimg
label: 标签页面默认头部图
type: attachment
categories_patternimg:
name: categories_patternimg
label: 分类页面默认头部图
type: attachment
journals_patternimg:
name: journals_patternimg
label: 日志下文章页面默认头部图
type: attachment
photos_patternimg:
name: photos_patternimg
label: 相册页面默认头部图
type: attachment
search_patternimg:
name: search_patternimg
label: 搜索结果默认头部图
type: attachment
links_placeholder:
name: links_placeholder
label: 友情链接默认用户头像
type: attachment
post:
label: 文章页
items:
post_toc:
name: post_toc
label: 是否展示目录
type: radio
data-type: bool
default: true
options:
- value: true
label: 开启
- value: false
label: 关闭
post_nepre:
name: post_nepre
label: 文章页是否显示上一篇和下一篇文章
type: radio
data-type: bool
default: true
options:
- value: true
label: 开启
- value: false
label: 关闭
allow_share:
name: allow_share
label: 开启分享
type: radio
data-type: bool
default: true
options:
- value: true
label: 开启
- value: false
label: 关闭
QR_code_zfb:
name: QR_code_zfb
label: "支付宝二维码图片"
type: attachment
placeholder: "支付宝收款二维码链接,不填不显示"
QR_code_wx:
name: QR_code_wx
label: "微信二维码图片"
type: attachment
placeholder: "微信收款二维码链接,不填不显示"
title:
label: 自定义页面标题
items:
links_title:
name: links_title
label: 友链页面标题
type: text
default: 友链
jounarls_title:
name: jounarls_title
label: 日志页面标题
type: text
default: 日志
tags_title:
name: tags_title
label: 标签页面标题
type: text
default: 标签列表
categories_title:
name: categories_title
label: 分类列表页面标题
type: text
default: 分类列表
achieve_title:
name: achieve_title
label: 归档页面标题
type: text
default: 归档
photos_title:
name: photos_title
label: 相册页面标题
type: text
default: 相册
social:
label: 社交网络
items:
github:
name: github
label: Github
type: text
placeholder: "GitHub"
description: "GitHub 主页链接"
mail:
name: mail
label: 邮箱
type: text
placeholder: "邮箱"
description: "邮箱地址"
zhihu:
name: zhihu
label: 知乎
type: text
placeholder: "知乎"
description: "知乎个人主页地址"
weibo:
name: weibo
label: 微博
type: text
placeholder: "微博"
description: "微博个人主页地址"
rss:
name: rss
label: 订阅按钮
type: radio
data-type: bool
default: true
options:
- value: true
label: 开启
- value: false
label: 关闭
other:
label: 其他
items:
TimeStatistics:
name: TimeStatistics
label: "站点运行时间统计"
type: text
description: "填入起始时间,格式:月/日/年 时:分:秒,如08/20/2018 12:00:00"
visit_statistics:
name: visit_statistics
label: 用户访问统计(需要引入不蒜子统计脚本,官网:https://busuanzi.ibruce.info)
type: radio
data-type: bool
default: false
options:
- value: true
label: 开启
- value: false
label: 关闭
xiang_ying_xiong_zhi_jing:
name: xiang_ying_xiong_zhi_jing
label: 向英雄致敬, 愿精神长存
type: radio
data-type: bool
default: false
options:
- value: true
label: 开启
- value: false
label: 关闭
description: "惟愿此功能永远不会被使用"
other_script_file:
name: other_script_file
label: 作为插件引入的js脚本文件
type: textarea
default: ""
common_js:
name: common_js
label: 作为插件需要执行的js脚本内容
type: textarea
default: ""
description: "同时只是加载和pjax执行该脚本"