-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
293 lines (257 loc) · 8.31 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
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
# ------------------------------------- #
# ---- General Settings --------------- #
# ------------------------------------- #
baseURL = "https://www.yolichan.fun/"
title = "yoli の 树洞 bot"
theme = "hugo-theme-den"
enableRobotsTXT = true # generate robots.txt
enableEmoji = true # use emoji support
enableRelated = true
showAuthorCard = true
hasCJKLanguage = true # detect CJK languages for word count etc.
preserveTaxonomyNames = true # do not make tag names lowercase
uglyURLs = false # more info: https://gohugo.io/content-management/urls/#ugly-urls
rssLimit = 20 # limit number of entries in RSS feeds
# page_view_conter = true
# Copyright, appears in the footer
# copyright = "" # default: author.name
# Pagination
# number of entries per page for archives, tags and categories
# since we don't have list view, recommend a large value
paginate = 100
paginatePath = "page"
# 是否开启子资源完整性验证
enableSRI = false
# 说明:开启子资源完整性验证后,该策略将使
# MemE 的 CSS 和 JS 在像谷歌翻译这样
# 的第三方网站上被禁止。为了避免开启后
# 的这个问题,你的服务器必须向 CSS 和
# JS 的请求中加上以下 Header:
#
# Access-Control-Allow-Origin: *
# Syntax Hightlight
PygmentsCodeFences = true
PygmentsUseClasses = true # required for shhighlight shortcode
# service plugins
# language support # en / zh-tw / other... translations present in i18n/
defaultContentLanguage = "zh" # Default language to use
defaultContentLanguageInSubdir = true
# Links format
[permalinks]
posts = "/:year/:month/:day/:filename/"
categories = "/category/:slug/" # required
tags = "/tag/:slug/" # required
pages = "/:slug/"
[author] # required
name = "koi"
[sitemap] # required
changefreq = "weekly"
priority = 0.5
filename = "sitemap.xml"
# ------------------------------------- #
# ---- Other Params ------------------- #
# ------------------------------------- #
enableGitInfo = true
[frontmatter]
lastmod = [":git", "lastmod", ":fileModTime"]
[params]
defaultContentLanguage = "zh"
since = "2023-04-03" # Site creation time
rssFullContent = true # set true to use full content instead of summary
fastSearch = true
# site info (optional)
keywords = ["Dream","diary","programming"]
description = "Dream machine | Programming | Photography | Broken Thoughts"
logoTitle = "yoli の 树洞 bot" # shown on top-left, default: title
siteLogoImage = "images/logo-site-230802.png" # shown besides logoTitle
# headerTitle = "Den" # default: title
# headerImage = "images/caaaaarrot-out.jpg"
headerImage = "images/background-flowers-wall.jpg"
showAuthorCard = true # Whether to show author information below the article
showMenuLanguages = true
buildFuture = true
enableCodeCopy = true
#autoLoadComments = false # auto load comment when scrolling down
# Waline评论
[params.waline]
enable = true
serverURL = "https://comments.yolichan.fun/" #已绑定域名
# serverURL = "https://blog-waline-668lta191-mewoooew.vercel.app/" #换成你的serverURL
# 参考:https://waline.js.org/
# paginate style, default use numbered pagination links
# if true, use original "Previous" and "Next" links.
paginateOriginalStyle = true
# The date format to use; for a list of valid formats, see https://gohugo.io/functions/format/
dateFormatToUse = "2006-01-02"
google_verification = "" # Google_Verification
# Link custom CSS and JS assets
# (relative to /static/css and /static/js respectively)
customCSS = ['den.css'] # if ['custom.css'], load '/static/css/custom.css' file
custom_js = ["clipboard.js"]
# if ['custom.js'], load '/static/js/custom.js' file
# Markdown 渲染器
[markup]
defaultMarkdownHandler = "goldmark"
[markup.goldmark]
[markup.goldmark.extensions]
definitionList = true
footnote = true
linkify = true
strikethrough = true
table = true
taskList = true
typographer = false
[markup.goldmark.parser]
attribute = true
autoHeadingID = true
autoHeadingIDType = "github"
[markup.goldmark.renderer]
hardWraps = false
unsafe = true
xHTML = false
[markup.highlight]
#style = "manni"
style = "nord"
codeFences= true
guessSyntax= true
lineNoStart= 1
lineNos= true
lineNumbersInTable= false
tabWidth= 4
noClasses = false
[markup.tableOfContents]
startLevel = 2
endLevel = 6
ordered = true
#[outputs]
# 增加 JSON 配置
# home = ["HTML", "RSS", "JSON"]
# ------------------------------------- #
# ---- Related Articles --------------- #
# ------------------------------------- #
[related]
# Only include matches with rank >= threshold. This is a normalized rank between 0 and 100.
threshold = 50
# To get stable "See also" sections we, by default, exclude newer related pages.
includeNewer = true
# Will lower case keywords in both queries and in the indexes.
toLower = true
[[related.indices]]
name = "categories"
weight = 200
[[related.indices]]
name = "keywords"
weight = 150
[[related.indices]]
name = "tags"
weight = 100
[languages.en]
languageCode = "en"
languageName = "English"
contentDir = "content/en"
weight = 2
[[languages.en.menu.main]]
name = "broken-thoughts"
weight = 10
identifier = "ideas"
url = "category/broken-thoughts/"
[[languages.en.menu.main]]
name = "pocket-book"
weight = 20
identifier = "pocket-book"
url = "category/pocket-book/"
[[languages.en.menu.main]]
name = "time-machine"
weight = 30
identifier = "time-machine"
url = "category/time-machine/"
#[[languages.en.menu.social]]
# name = "Telegram"
# weight = 10
# identifier = "telegram"
# url = "https://t.me/yoli"
#[[languages.en.menu.social]]
# name = "Twitter"
# weight = 20
# identifier = "twitter"
# url = "https://twitter.com/yoli"
#[[languages.en.menu.social]]
# name = "Instagram"
# weight = 30
# identifier = "instagram"
# url = "https://www.instagram.com/yoli/"
[[languages.en.menu.social]]
name = "BiliBili"
weight = 40
identifier = "bilibili"
# url = "https://space.bilibili.com/5374948/"
[[languages.en.menu.social]]
name = "Weibo"
weight = 40
identifier = "weibo"
# url = "https://space.bilibili.com/"
[[languages.en.menu.links]]
name = "koi's GitHub"
weight = 10
identifier = "github"
url = "https://github.com/mewoooew"
[[languages.en.menu.links]]
name = "yoli's Blog"
weight = 30
identifier = "yoli-bot"
url = "https://www.yolochan.fun/"
[languages.zh]
languageCode = "zh"
languageName = "中文"
contentDir = "content/zh"
weight = 1
[[languages.zh.menu.main]]
name = "碎碎念"
weight = 10
identifier = "broken-thoughts"
url = "category/broken-thoughts/"
[[languages.zh.menu.main]]
name = "口袋书"
weight = 20
identifier = "pocket-book"
url = "category/pocket-book/"
[[languages.zh.menu.main]]
name = "时光机"
weight = 30
identifier = "time-machine"
url = "category/time-machine/"
#[[languages.zh.menu.social]]
# name = "Telegram"
# weight = 10
# identifier = "telegram"
# url = "https://t.me/yoli"
#[[languages.zh.menu.social]]
# name = "Twitter"
# weight = 20
# identifier = "twitter"
# url = "https://twitter.com/yoli"
#[[languages.zh.menu.social]]
# name = "Instagram"
# weight = 30
# identifier = "instagram"
# url = "https://www.instagram.com/"
[[languages.zh.menu.social]]
name = "BiliBili"
weight = 40
identifier = "bilibili"
# url = "https://space.bilibili.com/"
[[languages.zh.menu.social]]
name = "Weibo"
weight = 40
identifier = "weibo"
# url = "https://"
[[languages.zh.menu.links]]
name = "koi 的 GitHub"
weight = 10
identifier = "github"
url = "https://github.com/mewoooew"
[[languages.zh.menu.links]]
name = "yoli の 树洞 bot"
weight = 30
identifier = "yoli-bot"
url = "https://www.yolichan.fun/"