-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.toml
201 lines (175 loc) · 4.41 KB
/
config.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
baseURL = "http://cxz888.xyz"
# [en, zh-cn, fr, ...] 设置默认的语言
defaultContentLanguage = "zh-cn"
# 网站语言,仅在这里 CN 大写
languageCode = "zh-CN"
# 是否包括中日韩文字
hasCJKLanguage = true
# 网站标题
enableGitInfo = true
publishDir = "docs"
timeZone = "Asia/Shanghai"
title = "闲云的博客"
# 更改使用 Hugo 构建网站时使用的默认主题
theme = "FixIt"
[params]
gitRepo = "https://github.com/cxz888/cxz888.xyz"
# FixIt 主题版本
version = "0.2.X"
[params.page]
rssFullText = true
[params.page.toc]
# 是否使用目录
enable = true
# FixIt 0.2.9 | 新增 是否保持使用文章前面的静态目录
keepStatic = false
# 是否使侧边目录自动折叠展开
auto = true
# FixIt 0.2.13 | 新增 目录位置 ("left", "right")
position = "right"
[params.math]
enable = true
[params.home.profile]
enable = true
# Gravatar 邮箱,用于优先在主页显示的头像
gravatarEmail = ""
# 主页显示头像的 URL
avatarURL = "/images/avatar.png"
# 主页显示的网站标题 (支持 HTML 格式)
title = "闲云"
# 主页显示的网站副标题
subtitle = "在互联网的小角落里,慢慢学习和生活"
# 是否为副标题显示打字机动画
typeit = false
# 是否显示社交账号
social = true
# 免责声明 (支持 HTML 格式)
disclaimer = ""
# 主页文章列表
[params.home.posts]
enable = true
# 主页每页显示文章数量
paginate = 6
[params.header.title]
# URL of the LOGO
# LOGO 的 URL
logo = "/images/cloud.png"
# title name
# 标题名称
name = "闲云的博客"
# you can add extra information before the name (HTML format is supported), such as icons
# 你可以在名称 (允许 HTML 格式) 之前添加其他信息,例如图标
pre = ""
# you can add extra information after the name (HTML format is supported), such as icons
# 你可以在名称 (允许 HTML 格式) 之后添加其他信息,例如图标
post = ""
# whether to use typeit animation for title name
# 是否为标题显示打字机动画
typeit = false
[params.gravatar]
# Gravatar 主机,默认:“www.gravatar.com”
host = "gravatar.loli.net"
style = "mp"
[params.githubCorner]
enable = true
permalink = "https://github.com/cxz888/cxz888.xyz"
position = "right"
title = ""
[params.page.comment]
enable = true
[params.page.comment.giscus]
category = "Comments"
categoryId = "DIC_kwDOHz_lZs4CQ12M"
darkTheme = "dark_dimmed"
emitMetadata = "0"
enable = true
inputPosition = "bottom" # top, bottom
lazyLoad = true
lightTheme = "light"
mapping = "og:title"
reactionsEnabled = "1"
repo = "cxz888/cxz888.xyz"
repoId = "R_kgDOHz_lZg"
term = ""
[menu]
[[menu.main]]
identifier = "posts"
# 你可以在名称(允许 HTML 格式)之前添加其他信息,例如图标
pre = ""
# 你可以在名称(允许 HTML 格式)之后添加其他信息,例如图标
name = "文章"
post = ""
url = "/posts/"
# 当你将鼠标悬停在此菜单链接上时,将显示的标题
title = ""
weight = 1
[[menu.main]]
identifier = "categories"
name = "分类"
post = ""
pre = ""
title = ""
url = "/categories/"
weight = 2
[[menu.main]]
identifier = "tags"
name = "标签"
post = ""
pre = ""
title = ""
url = "/tags/"
weight = 3
[[menu.main]]
identifier = "about"
name = "关于"
post = ""
pre = "<i class='fa-solid fa-info-circle fa-fw fa-sm'></i>"
title = ""
url = "/about/"
weight = 7
[[menu.main]]
identifier = "friends"
name = "友链"
post = ""
pre = "<i class='fa-solid fa-users fa-fw fa-sm'></i>"
title = "友情链接"
url = "/friends/"
weight = 6
[[menu.main]]
identifier = "github"
name = ""
post = ""
pre = "<i class='fa-brands fa-github fa-fw'></i>"
title = "GitHub"
url = "https://github.com/cxz888/cxz888.xyz"
weight = ""
[menu.main.params]
class = "d-none-desktop text-center"
# Hugo 解析文档的配置
[markup]
# 语法高亮设置 (https://gohugo.io/content-management/syntax-highlighting)
[markup.highlight]
anchorLineNos = false
codeFences = true
guessSyntax = true
hl_Lines = ""
lineAnchors = ""
lineNoStart = 1
lineNos = true
lineNumbersInTable = true
tabWidth = 4
# false 是必要的设置 (https://github.com/hugo-fixit/FixIt/issues/43)
noClasses = false
[markup.goldmark]
[markup.goldmark.renderer]
# 允许在 md 中内嵌 html
unsafe = true
[frontmatter]
lastmod = [':git', 'lastmod', ':fileModTime', ':default']
[outputs]
home = ["HTML", "RSS", "JSON"]
page = ["HTML", "MarkDown"]
section = ["HTML", "RSS"]
taxonomy = ["HTML", "RSS"]
taxonomyTerm = ["HTML"]
timeZone = "Asia/Shanghai"