-
Notifications
You must be signed in to change notification settings - Fork 0
/
hugo.toml
344 lines (316 loc) · 11.1 KB
/
hugo.toml
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
# Uncommented options are not recommended for modification
# 未标注释的选项建议不要修改
baseURL = 'http://blog.waterfish.xyz/'
languageCode = 'zh'
# website title
# 网站标题
title = 'WaterFish'
# theme
# 主题
theme = "NewBee"
# default content of website
# 网站默认语言
defaultContentLanguage = "zh"
# whether to use robots.txt
# 是否使用 robots.txt
enableRobotsTXT = true
# whether to use git info
# 是否使用 git info
enableGitInfo = false
# length of summary
# 摘要的字数限制
summaryLength = 50
# If true, auto-detect Chinese/Japanese/Korean Languages in the content.
# This will make .Summary and .WordCount behave correctly for CJK languages.
# 中日韩语言请改为 true
hasCJKLanguage = true
[author]
name = "WaterFish"
description = "水出强大,鱼方能翔。"
# profile photo of author in author card
# 作者头像
image = "/images/waterfish.jpg"
# link of followme in author card and footer
# 作者卡片里 followme 和页脚作者的链接
link = "https://github.com/WaterFish121506"
# Taxonomies
[taxonomies]
category = "categories"
tag = "tags"
series = "series"
[params]
[params.site]
onlyOneLang = false
# style of theme: auto, light, dark
mode = 'auto'
# page configuration
# 页面配置
[params.page]
# top image in home page, note that the "/" in path is necessary, the same applies below
# 主页的顶部图,路径开头”/“是必需的。下同
homeTopImg = "/images/home.jpg"
# title in home top image, support Markdown
# 主页标题,支持Markdown语法
homeTitle = "WaterFish"
# font size(px)
# 主页标题字号(单位:px)
homeTitleFontSize = 40
# content in home top image, support Markdown
# 主页内容,支持Markdown语法
homeContent = "水出强大,鱼方能翔。"
# font size(px)
# 主页内容字号(单位:px)
homeContentFontSize = 20
# top image in categories terms page
# 分类页面的顶部图
categoryTopImg = "/images/categories.jpg"
# description of categories terms page
# 子标题
categoryDes = "description of categories page"
# top image in series terms page
# 系列页面的顶部图
seriesTopImg = "/images/series.jpg"
# description of series terms page
# 子标题
seriesDes = "description of series page"
# top image in tags terms page
# 标签页面的顶部图
tagTopImg = "/images/tag.jpg"
# description of tags terms page
# 子标题
tagDes = "description of tags page"
# top image in allposts page
# 所有文章页面的顶部图
allPostsTopImg = "/images/allPosts.jpg"
# description of allposts page
# 子标题
allPostsDes = "description of allposts page"
# top image in about page
# 关于页面的顶部图
aboutTopImg = "/images/about.jpg"
# description of about page
# 子标题
aboutDes = "description of about page"
# default image for a post without "image" param
# 当文章没有设置图片时,将用此图来替代
defaultPostImg = "/images/default.jpg"
# 主页文章最大显示数量
maxHomePostCount = 5
# 相关文章最大显示数量
maxPageRelatedCount = 5
# 最新文章最大显示数量
maxPageNewestCount = 5
# Waline comment
# Waline评论(详情请移步:https://waline.js.org/)
[params.waline]
# 是否开启Waline评论系统
enable = true
# 服务端的地址
serverURL = 'https://waline.waterfish.xyz'
# 输入框提示文字
placeholder = '输入你的评论'
# 头像,具体请参考:https://waline.js.org/avatar.html
avatar = 'robohash'
# 评论时要求的必须填写项,可选值:['nick']或['nick','mail']
requiredFields = ['nick']
# 文章访问量统计
visitor = true
# 单页最大评论数目
pageSize = 5
# footer
# 页面底部配置
[params.footer]
# whether to enable footer
enable = true
# copyright
copyRight = true
from = 2022
# wheher to enable count of visitor and view
visitor = true
# wheher to enable theme information
themeInfo = true
# aplayer, se more: https://aplayer.js.org/#/zh-Hans/
# 音乐播放器配置,详情请移步:https://aplayer.js.org/#/zh-Hans/
[params.aplayer]
enable = false
server = "netease"
type = "playlist"
id = 752439587
fixed = true
autoplay = false
loop = "all"
order = "random"
preload = "auto"
list_folded = "ture"
list_max_height = "500px"
lrc_type = 1
# related configuration, see more: https://gohugo.io/content-management/related/
# 相关文章的配置。详情请移步:https://gohugo.io/content-management/related/
[related]
# 取值0-100之间,越小匹配到的文章越多,但准确性稍差
threshold = 0
# 允许包含最新的文章
includeNewer = true
# 设置为true时,可以在索引和查询中同时使用小写关键字。
# 这可能会在轻微的性能损失下提供更准确的结果。
# 也可以在下面的子项中分别设置此值。
toLower = false
[[related.indices]]
# 匹配类别
name = "categories"
# 一个整数权重,表示此参数相对于其他参数的重要性。
# 可以是0,有关闭这个索引的效果,甚至是负数。
# 使用不同的值进行测试,以查看最适合您的内容的值。
weight = "100"
# 同上toLower
toLower = false
[[related.indices]]
name = "tags"
weight = "80"
toLower = false
[[related.indices]]
name = "date"
weight = "10"
# Markup related configuration in Hugo
# Hugo 解析文档的配置
[markup]
# syntax highlight, see more: https://gohugo.io/functions/highlight/
# 语法高亮,详情请移步:https://gohugo.io/functions/highlight/
[markup.highlight]
codeFences = true
guessSyntax = false
# hl_Lines = ''
lineAnchors = ''
lineNoStart = 1
# 显示每一行代码前的序号
lineNos = true
anchorLineNos = false
lineNumbersInTable = true
noClasses = false
noHl = false
# 代码高亮样式,更多样式请移步:https://xyproto.github.io/splash/docs/
style = 'monokailight'
tabWidth = 4
# enable the following code if there are html statements in your md file
# 如果md文件中有html语句,请启用以下代码
# [markup.goldmark]
# [markup.goldmark.renderer]
# unsafe = true
# 多语言设置
[languages]
[languages.en]
languageName = 'English'
weight = 2
contentDir = 'content/english'
[languages.en.menus]
# navigation entries
# 导航栏子项
[[languages.en.menus.main]]
# 名称
name = "Home"
# 路径
url = "/en/"
# order weight, more small more close to left, at least 1
# 排序的权重,越小越靠前(左),最小为1
weight = 1
# icon from FontAwesome in front of single entry
# 图标,本主题使用的图标来自FontAwesome
pre = "<i class='fa fa-home'></i>"
[[languages.en.menus.main]]
name = "Posts"
url = "/en/posts"
weight = 2
pre = "<i class='fa fa-book'></i>"
[[languages.en.menus.main]]
name = "Categories"
url = "/en/categories"
weight = 3
pre = "<i class='fa fa-folder-open'></i>"
[[languages.en.menus.main]]
name = "Series"
url = "/en/series"
weight = 4
pre = "<i class='fa fa-gears'></i>"
[[languages.en.menus.main]]
name = "Tags"
url = "/en/tags"
weight = 5
pre = "<i class='fa fa-tags'></i>"
[[languages.en.menus.main]]
name = "About"
url = "/en/about"
weight = 6
pre = "<i class='fa fa-info-circle'></i>"
# social, maxum 6
# 作者卡片社交链接,最多6个
[[languages.en.menus.social]]
name = "GitHub"
url = "https://github.com/WaterFish121506"
pre = "<i class='fa fa-github'></i>"
weight = 1
[[languages.en.menus.social]]
name = "YouTube"
url = "https://www.youtube.com"
pre = "<i class='fa fa-youtube'></i>"
weight = 2
# sponsor, maxum 3
# 赞赏,最多支持3个
[[languages.en.menus.sponsor]]
name = "Wechat"
url = "/images/sponsor/wechat.jpeg"
weight = 1
[[languages.en.menus.sponsor]]
name = "Alipay"
url = "/images/sponsor/alipay.jpeg"
weight = 2
[languages.zh]
languageName = '简体中文'
weight = 1
contentDir = 'content/chinese'
[languages.zh.menus]
[[languages.zh.menus.main]]
name = "主页"
url = "/"
weight = 1
pre = "<i class='fa fa-home'></i>"
[[languages.zh.menus.main]]
name = "文章"
url = "/posts"
weight = 2
pre = "<i class='fa fa-book'></i>"
[[languages.zh.menus.main]]
name = "分类"
url = "/categories"
weight = 3
pre = "<i class='fa fa-folder-open'></i>"
[[languages.zh.menus.main]]
name = "系列"
url = "/series"
weight = 4
pre = "<i class='fa fa-gears'></i>"
[[languages.zh.menus.main]]
name = "标签"
url = "/tags"
weight = 5
pre = "<i class='fa fa-tags'></i>"
[[languages.zh.menus.main]]
name = "关于"
url = "/about"
weight = 6
pre = "<i class='fa fa-info-circle'></i>"
[[languages.zh.menus.social]]
name = "GitHub"
url = "https://github.com/WaterFish121506"
pre = "<i class='fa fa-github'></i>"
weight = 1
[[languages.zh.menus.social]]
name = "YouTube"
url = "https://www.youtube.com"
pre = "<i class='fa fa-youtube'></i>"
weight = 2
[[languages.zh.menus.sponsor]]
name = "微信"
url = "/images/sponsor/wechat.jpeg"
[[languages.zh.menus.sponsor]]
name = "支付宝"
url = "/images/sponsor/alipay.jpeg"