-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.toml
More file actions
400 lines (369 loc) · 10.2 KB
/
config.toml
File metadata and controls
400 lines (369 loc) · 10.2 KB
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
baseURL = "https://austinxt.github.io"
# Change the default theme to be use when building the site with Hugo
theme = "FixIt"
# website title
title = "夜航星"
# language code ["en", "zh-CN"]
languageCode = "zh-CN"
# language name ["English", "简体中文"]
languageName = "简体中文"
enableEmoji = true
timeZone = "Asia/Shanghai"
hasCJKLanguage = true
# Author config
[author]
name = "夜航星"
email = "164640966@qq.com"
link = ""
# Menu config
[menu]
[[menu.main]]
weight = 1
identifier = "posts"
# you can add extra information before the name (HTML format is supported), such as icons
pre = ""
# you can add extra information after the name (HTML format is supported), such as icons
post = ""
name = "文章"
url = "/posts/"
# title will be shown when you hover on this menu link
title = "文章"
[[menu.main]]
weight = 1
identifier = "briefing"
pre = ""
post = ""
name = "简报"
url = "/briefing/"
# title will be shown when you hover on this menu link
title = "简报"
[[menu.main]]
weight = 2
identifier = "tags"
pre = ""
post = ""
name = "标签"
url = "/tags/"
title = ""
[[menu.main]]
weight = 3
identifier = "categories"
pre = ""
post = ""
name = "分类"
url = "/categories/"
title = ""
# Markup related config in Hugo
[markup]
# Syntax Highlighting
[markup.highlight]
codeFences = true
guessSyntax = true
lineNos = true
lineNumbersInTable = true
# false is a necessary configuration
# (https://github.com/dillonzq/LoveIt/issues/158)
noClasses = false
# Goldmark is from Hugo 0.60 the default library used for Markdown
[markup.goldmark]
[markup.goldmark.extensions]
definitionList = true
footnote = true
linkify = true
strikethrough = true
table = true
taskList = true
typographer = true
[markup.goldmark.renderer]
# whether to use HTML tags directly in the document
unsafe = true
# Table Of Contents settings
[markup.tableOfContents]
startLevel = 2
endLevel = 5
# Sitemap config
[sitemap]
changefreq = "weekly"
filename = "sitemap.xml"
priority = 0.5
# Permalinks config
[Permalinks]
# posts = ":year/:month/:filename"
posts = "/:slug/"
# Privacy config
[privacy]
# LoveIt DELETED | 0.2.0 privacy of the Google Analytics (replaced by params.analytics.google)
[privacy.googleAnalytics]
# ...
[privacy.x]
enableDNT = true
[privacy.youtube]
privacyEnhanced = true
# Options to make output .md files
[mediaTypes]
[mediaTypes."text/plain"]
suffixes = ["md"]
# Options to make output .md files
[outputFormats.MarkDown]
mediaType = "text/plain"
isPlainText = true
isHTML = false
# Options to make hugo output files
[outputs]
# LoveIt CHANGED | 0.2.0
home = ["HTML", "RSS", "JSON"]
page = ["HTML", "MarkDown"]
section = ["HTML", "RSS"]
taxonomy = ["HTML", "RSS"]
# 页面全局配置
[params]
# 主页显示的内容 section
mainSections = ["posts"]
# 网站描述(用于 SEO)
description = "夜航星的个人博客,分享认知心理学、学习方法、数据分析、编程技术等内容"
# 网站关键词(用于 SEO)
keywords = ["认知心理学", "学习方法", "数据分析", "编程", "技术博客", "读书笔记"]
# 默认主题样式
defaultTheme = "auto"
# 网站图片(用于 Open Graph 和 Twitter Cards)
images = ["/android-chrome-256x256.png"]
# Header 配置
[params.header]
# 桌面端导航栏模式 ["fixed", "normal", "auto"]
desktopMode = "fixed"
# 移动端导航栏模式 ["fixed", "normal", "auto"]
mobileMode = "auto"
# Header title config
[params.header.title]
# 网站名称
name = "夜航星"
# 是否为标题显示打字机动画
typeit = false
# Footer 配置
[params.footer]
enable = true
# 自定义内容(支持 HTML)
custom = ""
# 是否显示 Hugo 和主题信息
hugo = false
# 是否显示版权信息
copyright = true
# 是否显示作者
author = true
# 网站创立年份
since = 2016
# ICP 备案信息(仅在中国使用)
icp = ""
# license info
license = '<a rel="license external nofollow noopener" href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank">CC BY-NC 4.0</a>'
# SEO 配置
[params.seo]
# 图片 URL
image = "/android-chrome-256x256.png"
# 缩略图 URL
thumbnailUrl = "/android-chrome-256x256.png"
# Home page config
[params.home]
# RSS 文章数目
rss = 10
# 主页个人信息
[params.home.profile]
enable = true
# 头像 URL
avatarURL = "/images/avatar.png"
# 头像的链接指向的 URL
avatarLink = ""
# 标题
title = "夜航星"
# 副标题
subtitle = "探索认知,记录思考"
# 是否为副标题显示打字机动画
typeit = true
# 是否显示社交账号
social = true
# 主页文章列表
[params.home.posts]
enable = true
# 主页每页显示文章数量
paginate = 6
# 社交链接(用于 SEO 和分享)
[params.social]
GitHub = "AustinXT"
Email = "164640966@qq.com"
RSS = true
# 页面配置
[params.page]
# 是否在主页隐藏一篇文章
hiddenFromHomePage = false
# 是否在搜索结果中隐藏一篇文章
hiddenFromSearch = false
# 是否使用 twemoji
twemoji = false
# 是否使用 lightgallery
lightgallery = true
# 是否使用 ruby 扩展语法
ruby = true
# 是否使用 fraction 扩展语法
fraction = true
# 是否使用 fontawesome 扩展语法
fontawesome = true
# 是否在文章页面显示原始 Markdown 文档链接
linkToMarkdown = false
# 是否在 RSS 中显示全文内容
rssFullText = true
# 目录配置
[params.page.toc]
# 是否使用目录
enable = true
# 是否保持使用文章前面的静态目录
keepStatic = false
# 是否使侧边目录自动折叠展开
auto = true
# 代码配置
[params.page.code]
# 是否显示代码块的复制按钮
copy = true
# 默认展开显示的代码行数
maxShownLines = 10
[params.page.code.render]
# 启用 mermaid 图表渲染
mermaid = true
# 启用 goat ASCII 图表渲染
goat = true
# 数学公式(KaTeX)
[params.page.math]
enable = true
# 默认块定界符是 $$ ... $$ 和 \\[ ... \\]
blockLeftDelimiter = ""
blockRightDelimiter = ""
# 默认行内定界符是 $ ... $ 和 \\( ... \\)
inlineLeftDelimiter = ""
inlineRightDelimiter = ""
# KaTeX 插件 copy_tex
copyTex = true
# KaTeX 插件 mhchem
mhchem = true
# 分享配置
[params.page.share]
enable = true
Twitter = false
Facebook = false
Linkedin = false
Whatsapp = false
Pinterest = false
Tumblr = false
HackerNews = false
Reddit = false
VK = false
Buffer = false
Xing = false
Line = false
Instapaper = false
Pocket = false
Digg = false
Stumbleupon = false
Flipboard = false
Weibo = true
Renren = false
Myspace = false
Blogger = false
Baidu = false
Odnoklassniki = false
Evernote = true
Skype = false
Trello = false
Mix = false
# 评论系统配置
[params.page.comment]
enable = true
# Giscus 评论系统设置 (基于 GitHub Discussions)
[params.page.comment.giscus]
enable = true
# owner/repo
repo = "AustinXT/AustinXT.github.io"
repoId = ""
category = "Announcements"
categoryId = ""
mapping = "pathname"
strict = "0"
reactionsEnabled = "1"
emitMetadata = "0"
inputPosition = "bottom"
lightTheme = "light"
darkTheme = "dark"
lazyLoad = true
# SEO 配置
[params.page.seo]
# 图片 URL
images = []
# 出版者信息
[params.page.seo.publisher]
name = "夜航星"
logoUrl = "/android-chrome-256x256.png"
# 网站验证代码,用于 Google/Bing/Yandex/Pinterest/Baidu
[params.verification]
google = "00J8v2teRD9IFFhJM0QcwpJxOIS145V17Gs92KyvkKs"
bing = "A8312CFEB2572DD4CE59217E4C4A362F"
yandex = ""
pinterest = ""
baidu = "codeva-qtdSyvdOSy"
so = "98c9cfe3e0351030f151d7795bfc41a5"
sogou = "2vlWBRmEsH"
# 网站分析配置
[params.analytics]
enable = true
# 百度统计
[params.analytics.baidu]
id = ""
# Google Analytics
[params.analytics.google]
id = ""
# 是否匿名化用户 IP
anonymizeIP = true
# Fathom Analytics
[params.analytics.fathom]
id = ""
# 服务器 URL(可选)
server = ""
# Cookie 许可配置
[params.cookieconsent]
enable = true
# 用于 Cookie 许可横幅的文本字符串
[params.cookieconsent.content]
message = "本网站使用 Cookies 来改善您的浏览体验。"
dismiss = "同意"
link = "了解更多"
# 自定义 Partial 配置
[params.customPartials]
# 在文章内容前插入音频播放器
postContentBefore = ["audio-player.html"]
# 在文章内容后显示转载来源
postContentAfter = ["repost-source.html"]
# 搜索配置
[params.search]
enable = true
# 搜索引擎的类型 ("algolia", "fuse", "lunr")
type = "fuse"
# 文章内容最长索引长度
contentLength = 4000
# 搜索框的占位提示语
placeholder = "搜索文章..."
# 最大结果数量
maxResultLength = 10
# 结果内容片段长度
snippetLength = 30
# 搜索结果中高亮部分的 HTML 标签
highlightTag = "em"
# 是否在搜索索引中使用基于 baseURL 的绝对路径
absoluteURL = false
[params.search.fuse]
# https://fusejs.io/api/options.html
isCaseSensitive = false
minMatchCharLength = 2
findAllMatches = false
location = 0
threshold = 0.3
distance = 100
ignoreLocation = false
useExtendedSearch = false
ignoreFieldNorm = false