-
Notifications
You must be signed in to change notification settings - Fork 0
/
hugo.toml
557 lines (516 loc) · 15.4 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
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
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
baseURL = "https://nebulanox.blue/"
# [en, zh-cn, fr, ...] 设置默认的语言
defaultContentLanguage = "zh-cn"
# 网站标题
title = "Nebula Nox Blue"
# 更改使用 Hugo 构建网站时使用的默认主题
theme = "DoIt"
staticDir = ["static", "static-surprises"]
# whether to use robots.txt
enableRobotsTXT = true
# 自动根据 git 提交信息,生成文章的更新时间。这个好像不能识别到每篇文章的修改时间,先关掉
# enableGitInfo = true
# whether to use emoji code
enableEmoji = true
[params]
# DoIt 主题版本
version = "0.4.X"
description = "Nebula Nox Blue"
# 网站关键词
keywords = ["Blog", "部落格", "博客", "Enkaiyuegure", "Nkegynles", "云海薄暮", "Nebulanox"]
# 网站默认主题样式 ("light", "dark", "auto")
defaultTheme = "auto"
# DoIt 新增 | 0.2.11 开启 PWA 支持
enablePWA = false
# DoIt 新增 | 0.2.0 搜索配置
[params.search]
enable = true
# 搜索引擎的类型 ("lunr", "algolia")
type = "algolia"
# 文章内容最长索引长度
contentLength = 4000
# 搜索框的占位提示语
placeholder = ""
# DoIt 新增 | 0.2.1 最大结果数目
maxResultLength = 10
# DoIt 新增 | 0.2.3 结果内容片段长度
snippetLength = 50
# DoIt 新增 | 0.2.1 搜索结果中高亮部分的 HTML 标签
highlightTag = "em"
# DoIt 新增 | 0.2.4 是否在搜索索引中使用基于 baseURL 的绝对路径
absoluteURL = false
[params.search.algolia]
index = ""
appID = ""
searchKey = ""
# 页面头部导航栏配置
[params.header]
# 桌面端导航栏模式 ("fixed", "normal", "auto")
desktopMode = "fixed"
# 移动端导航栏模式 ("fixed", "normal", "auto")
mobileMode = "auto"
# DoIt 新增 | 0.2.0 页面头部导航栏标题配置
[params.header.title]
# LOGO 的 URL(不要设置这个!)
logo = ""
# 标题名称
name = "Nebula Nox Blue"
# 你可以在名称 (允许 HTML 格式) 之前添加其他信息, 例如图标
pre = ""
# 你可以在名称 (允许 HTML 格式) 之后添加其他信息, 例如图标
post = ""
# DoIt 新增 | 0.2.5 是否为标题显示打字机动画
typeit = true
# Footer config
# 页面底部信息配置
[params.footer]
enable = true
# Custom content (HTML format is supported)
# 自定义内容 (支持 HTML 格式)
custom = """
"""
# whether to show Hugo and theme info
# 是否显示 Hugo 和主题信息
hugo = true
# DoIt 新增 | 0.2.14 托管服务信息 (支持 HTML 格式)
hostedOn = '<a title="Vercel" href="https://vercel.com/" target="_blank" rel="noopener noreffer">Vercel</a>'
# whether to show copyright info
# 是否显示版权信息
copyright = true
# whether to show the author
# 是否显示作者
author = true
# site creation time
# 网站创立年份
since = 2024
# ICP info only in China (HTML format is supported)
# ICP 备案信息,仅在中国使用 (支持 HTML 格式)
icp = ""
# license info (HTML format is supported)
# 许可协议信息 (支持 HTML 格式)
license= """
<a rel="license external nofollow noopener noreffer" href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank">CC BY-NC 4.0</a>
"""
# Section (所有文章) 页面配置
[params.section]
# section 页面每页显示文章数量
paginate = 1000 # 尽量一页列出所有文章
# DoIt 新增 | 0.2.13 最近更新文章设置
[params.section.recentlyUpdated]
enable = true
rss = false
days = 30
maxCount = 10
# List (目录或标签) 页面配置
[params.list]
# list 页面每页显示文章数量
paginate = 1000 # 尽量一页列出所有文章
# 社交信息设置
[params.social]
GitHub = "Enkaiyuegure"
X = "Enkaiyuegure"
Reddit = "Enkaiyuegure"
RSS = true # RSS 格式太简陋,切换到自定义的 ATOM 格式,此参数仅用于控制显示首页的 RSS 按钮
# DoIt 更改 | 0.2.0 文章页面配置
[params.page]
# DoIt 新增 | 0.2.0 是否在主页隐藏一篇文章
hiddenFromHomePage = false
# DoIt 新增 | 0.2.0 是否在搜索结果中隐藏一篇文章
hiddenFromSearch = false
# DoIt 新增 | 0.2.0 是否使用 twemoji
twemoji = false
# 是否使用 lightgallery
lightgallery = false
# DoIt 新增 | 0.2.0 是否使用 ruby 扩展语法
ruby = true
# DoIt 新增 | 0.2.0 是否使用 fraction 扩展语法
fraction = true
# DoIt 新增 | 0.2.0 是否使用 fontawesome 扩展语法
#fontawesome = true
# 是否在文章页面显示原始 Markdown 文档链接
linkToMarkdown = true
# DoIt 新增 | 0.2.13 是否在文章开头显示系列导航
seriesNavigation = true
# DoIt 新增 | 0.2.0 目录配置
[params.page.toc]
# 是否使用目录
enable = true
# DoIt 新增 | 0.2.9 是否保持使用文章前面的静态目录
keepStatic = false
# 是否使侧边目录自动折叠展开
auto = true
# DoIt 新增 | 0.2.0 代码配置
[params.page.code]
# 是否显示代码块的复制按钮
copy = true
# 默认展开显示的代码行数
maxShownLines = 30
# DoIt 更改 | 0.2.0 KaTeX 数学公式
[params.page.math]
enable = true
# 默认块定界符是 $$ ... $$ 和 \\[ ... \\]
blockLeftDelimiter = ""
blockRightDelimiter = ""
# 默认行内定界符是 $ ... $ 和 \\( ... \\)
inlineLeftDelimiter = ""
inlineRightDelimiter = ""
# KaTeX 插件 copy_tex
copyTex = true
# KaTeX 插件 mhchem
mhchem = true
# DoIt 新增 | 0.2.0 Mapbox GL JS 配置
[params.page.mapbox]
# Mapbox GL JS 的 access token
accessToken = ""
# 浅色主题的地图样式
lightStyle = "mapbox://styles/mapbox/light-v9"
# 深色主题的地图样式
darkStyle = "mapbox://styles/mapbox/dark-v9"
# 是否添加 NavigationControl
navigation = true
# 是否添加 GeolocateControl
geolocate = true
# 是否添加 ScaleControl
scale = true
# 是否添加 FullscreenControl
fullscreen = true
# DoIt 更改 | 0.2.0 文章页面的分享信息设置
[params.page.share]
enable = true
Twitter = true
Mastodon = true
Reddit = true
HackerNews = true
# DoIt 更改 | 0.2.0 评论系统设置
[params.page.comment]
enable = true
[params.page.comment.utterances]
enable = true
# owner/repo
repo = "Enkaiyuegure/nebulanox.blue"
issueTerm = "pathname"
label = ""
lightTheme = "github-light"
darkTheme = "github-dark"
# Page SEO config
# 页面 SEO 配置
[params.page.seo]
# image URL
# 图片 URL
images = []
# Publisher info
# 出版者信息
[params.page.seo.publisher]
name = "Enkaiyuegure"
logoUrl = "/avatar/myself.png"
# DoIt 新增 | 0.2.14 相关文章推荐配置
[params.page.related]
enable = true
count = 3
# 网站验证代码,用于 Google/Bing/Yandex/Pinterest/Baidu
[params.verification]
google = ""
bing = ""
yandex = ""
pinterest = ""
baidu = ""
# DoIt 新增 | 0.2.10 网站 SEO 配置
[params.seo]
# 图片 URL
image = ""
# 缩略图 URL
thumbnailUrl = ""
# DoIt 新增 | 0.2.0 网站分析配置
[params.analytics]
enable = true
# Google Analytics
[params.analytics.google]
id = ""
# 是否匿名化用户 IP
anonymizeIP = true
[languages]
[languages.zh-cn]
weight = 1
# language code, CN only here
languageCode = "zh-CN"
languageName = "Simplified Chinese"
# whether to include Chinese/Japanese/Korean
hasCJKLanguage = true
# DoIt 新增 | 0.2.13 赞赏配置
[languages.zh-cn.params.sponsor]
enable = true
bio = "如果你觉得这篇文章对你有所帮助,欢迎评论、分享、打赏~"
link = "https://nebulanox.blue/" # 你的赞赏页面的地址
custom = "" # 自定义 HTML
[languages.zh-cn.params.home.profile]
enable = true
# Gravatar 邮箱,用于优先在主页显示的头像
#gravatarEmail = "[email protected]"
# 主页显示头像的 URL
avatarURL = "/avatar/myself.webp"
# DoIt 更改 | 0.2.7 主页显示的网站标题 (支持 HTML 格式)
title = ""
# 主页显示的网站副标题
subtitle = "从云之上总有光明。"
# 是否为副标题显示打字机动画
typeit = true
# 是否显示社交账号
social = true
# DoIt 新增 | 0.2.0 免责声明 (支持 HTML 格式)
disclaimer = ""
[languages.zh-cn.params.home.posts]
enable = true
# special amount of posts in each home posts page
paginate = 10
# DoIt 更改 | 0.2.7 第三方库文件的 CDN 设置
# [languages.zh-cn.params.cdn]
# # CDN 数据文件名称, 默认不启用
# # 位于 "themes/DoIt/assets/data/cdn/" 目录
# # 可以在你的项目下相同路径存放你自己的数据文件:
# # "assets/data/cdn/"
# data = "jsdelivr.yml"
[[languages.zh-cn.menu.main]]
identifier = "statistics"
pre = ""
post = ""
name = "阅读排行"
url = "/statistics/"
title = ""
weight = 1
[[languages.zh-cn.menu.main]]
identifier = "series"
pre = ""
post = ""
name = "系列"
url = "/series/"
title = ""
weight = 3
[[languages.zh-cn.menu.main]]
identifier = "tech"
pre = ""
post = ""
name = "技术"
url = "/categories/tech/"
title = ""
weight = 5
[[languages.zh-cn.menu.main]]
identifier = "essays"
pre = ""
post = ""
name = "生活"
url = "/categories/life/"
title = ""
weight = 7
[[languages.zh-cn.menu.main]]
identifier = "tags"
pre = ""
post = ""
name = "标签"
url = "/tags/"
title = ""
weight = 9
[[languages.zh-cn.menu.main]]
identifier = "friends"
pre = ""
post = ""
name = "朋友"
url = "/friends/"
title = ""
weight = 11
[[languages.zh-cn.menu.main]]
identifier = "now"
pre = ""
post = ""
name = "此刻"
url = "/now/"
title = ""
weight = 13
[[languages.zh-cn.menu.main]]
identifier = "about"
pre = ""
post = ""
name = "关于"
url = "/about/"
title = ""
weight = 15
[languages.en]
weight = 2
languageCode = "en"
languageName = "English"
[languages.en.params.home.profile]
enable = true
# Gravatar 邮箱,用于优先在主页显示的头像
#gravatarEmail = "[email protected]"
# 主页显示头像的 URL
avatarURL = "/avatar/myself.webp"
# DoIt 更改 | 0.2.7 主页显示的网站标题 (支持 HTML 格式)
title = ""
# 主页显示的网站副标题
subtitle = """There is always light behind the clouds."""
# 是否为副标题显示打字机动画
typeit = false
# 是否显示社交账号
social = true
# DoIt 新增 | 0.2.0 免责声明 (支持 HTML 格式)
disclaimer = ""
[languages.en.params.sponsor]
enable = true
bio = "If you find my creation helpful, please consider commenting, sharing & sponsoring."
link = "https://nebulanox.blue/" # The link to your sponsor page
custom = "" # Custom HTML button
[languages.en.params.home.posts]
enable = true
# special amount of posts in each home posts page
paginate = 10
# [[languages.zh-cn.menu.main]]
# identifier = "statistics"
# pre = ""
# post = ""
# name = "Trending"
# url = "/statistics/"
# title = ""
# weight = 1
[[languages.en.menu.main]]
identifier = "series"
pre = ""
post = ""
name = "Series"
url = "/series/"
title = ""
weight = 3
[[languages.en.menu.main]]
identifier = "posts"
pre = ""
post = ""
name = "Posts"
url = "/posts/"
title = ""
weight = 5
[[languages.en.menu.main]]
identifier = "tech"
pre = ""
post = ""
name = "Tech"
url = "/categories/tech/"
title = ""
weight = 7
[[languages.en.menu.main]]
identifier = "essays"
pre = ""
post = ""
name = "Life"
url = "/categories/life/"
title = ""
weight = 9
[[languages.en.menu.main]]
identifier = "tags"
pre = ""
post = ""
name = "Tags"
url = "/tags/"
title = ""
weight = 11
[[languages.en.menu.main]]
identifier = "now"
pre = ""
post = ""
name = "Now"
url = "/now/"
title = ""
weight = 15
[[languages.en.menu.main]]
identifier = "about"
pre = ""
post = ""
name = "About"
url = "/about/"
title = ""
weight = 17
# Hugo 解析文档的配置
[markup]
# 语法高亮设置
[markup.highlight]
codeFences = true
guessSyntax = true
lineNos = true
lineNumbersInTable = true
# false 是必要的设置
# (https://github.com/dillonzq/DoIt/issues/158)
noClasses = false
# Goldmark 是 Hugo 0.60 以来的默认 Markdown 解析库
[markup.goldmark]
[markup.goldmark.extensions]
definitionList = true
footnote = true
linkify = true
strikethrough = true
table = true
taskList = true
typographer = true
[markup.goldmark.renderer]
# 是否在文档中直接使用 HTML 标签
unsafe = true
[markup.goldmark.extensions.cjk]
enable = true
# 自动去除中文之间的换行(而不是将其替换为空格)
eastAsianLineBreaks = true
escapedSpace = true
# 目录设置
[markup.tableOfContents]
startLevel = 2
endLevel = 6
# 作者配置
[author]
name = "Enkaiyuegure"
nickname = "Nkegynles"
avatar = "https://nebulanox.blue/avatar/myself.webp"
link = "https://nebulanox.blue/"
# 网站地图配置
[sitemap]
changefreq = "weekly"
filename = "sitemap.xml"
priority = 0.5
# Permalinks 配置
[Permalinks]
# posts = ":year/:month/:filename"
posts = "posts/:filename"
# 隐私信息配置
[privacy]
[privacy.twitter]
enableDNT = true
[privacy.youtube]
privacyEnhanced = true
# Atom feed
# Add "ATOM" to the Page Kinds under [outputs] (in your site config) for which
# you want to enable Atom feeds.
# Example:
# [outputs]
# home = ["HTML", "ATOM"]
# https://gist.github.com/lpar/7ded35d8f52fef7490a5be92e6cd6937
[mediaTypes."application/atom+xml"]
suffixes = ["xml"]
[outputFormats.Atom]
# https://validator.w3.org/feed/docs/atom.html#whatIsAtom
name = "ATOM"
mediaType = "application/atom+xml"
baseName = "index" # generated file = <baseName>.<mediaType."application/atom+xml".suffixes[0]> = index.xml
isPlainText = false
rel = "alternate"
isHTML = false
noUgly = true
permalinkable = false
# 用于分类的设置
[taxonomies]
author = "authors"
category = "categories"
tag = "tags"
series = "series"
# 用于 Hugo 输出文档的设置
[outputs]
# DoIt 更改 | 0.2.0
# 为了支持搜索,需要在这里设定,输出 json 索引文件
# <domain>/atom.xml
home = ["HTML", "ATOM", "JSON", "RSS"]
page = ["HTML", "RSS"]
section = ["HTML"]
taxonomy = ["HTML"]