-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.toml
More file actions
213 lines (195 loc) · 4.84 KB
/
config.toml
File metadata and controls
213 lines (195 loc) · 4.84 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
baseURL = "https://blog.yuanji.dev"
defaultContentLanguage = "zh-Hans"
defaultContentLanguageInSubdir = false
buildDrafts = true
buildFuture = true
title = "Yuanji's Blog"
theme = ["futu"]
enableRobotsTXT = true
enableEmoji = true
enableGitInfo = true
hasCJKLanguage = true # has chinese/japanese/korean ? # 自动检测是否包含 中文\日文\韩文
timeout = "300s"
# googleAnalytics = "G-YL6RBN684E"
[services]
[services.disqus]
shortname = 'gimome'
[permalinks]
remarks = '/:section/:year-:month-:day/'
[imaging]
quality = 75
[sitemap]
changefreq = "weekly"
priority = 0.5
filename = "sitemap.xml"
[frontmatter]
date = ['date', 'publishdate', 'pubdate', 'published', 'lastmod', 'modified']
lastmod = ['lastmod', ':git', 'date', 'publishDate']
publishDate = ['publishdate', 'pubdate', 'published', 'date']
[params]
keywords = ["Yuanji", "元吉", "日语", "日本", "VPS", "Linux"]
description = "Yuanji's Blog, 元吉的博客"
ampLogo = "logo-600x60.png"
# Site creation time
since = "2016"
homePaginate = 10
paginate = 10
# The date format to use; for a list of valid formats, see https://gohugo.io/functions/format/
dateFormatToUse = "2006/01/02"
# Whether display TOC or not.
toc = true
enableRelated = true
enableShare = true
googleVerification = "MgUc_ybvVWaRA5z2rsL4hzS5DwH9xdvKQFNthWOoLEg"
# cfBeaconToken = "744413db6a4649cd861280314303b5a9"
enableZoomJS = true
telegramChannel = "yuanji_chan"
[params.social]
twitter = "yuanji_dev"
[params.author]
name = "Yuanji"
url = "https://blog.yuanji.dev"
[params.git]
repo = "https://github.com/yuanji-dev/nikki"
branch = "main"
# See https://gohugo.io/about/hugo-and-gdpr/
[privacy]
[privacy.googleAnalytics]
anonymizeIP = true # 12.214.31.144 -> 12.214.31.0
[privacy.youtube]
privacyEnhanced = true
# Uncomment these options to make hugo output .md files.
[mediaTypes]
[mediaTypes."text/markdown"]
suffixes = ["md"]
[outputFormats.Markdown]
mediaType = "text/markdown"
isPlainText = true
isHTML = false
[outputs]
home = ["HTML", "RSS", "Markdown"]
page = ["HTML", "AMP", "Markdown"]
section = ["HTML", "RSS"]
taxonomy = ["HTML", "RSS"]
[markup]
[markup.tableOfContents]
startLevel = 2
[markup.goldmark.renderer]
unsafe = true
[markup.goldmark.parser]
wrapStandAloneImageWithinParagraph = false
[markup.highlight]
anchorLineNos = true
codeFences = true
guessSyntax = true
hl_Lines = ''
lineAnchors = ''
lineNoStart = 1
lineNos = false
lineNumbersInTable = false
noClasses = false
noHl = false
style = 'rose-pine-dawn'
tabWidth = 4
[languages]
[languages.zh-Hans]
title = "Yuanji's Blog"
languageCode = 'zh-Hans'
languageName = '简体中文'
[languages.zh-Hans.params]
description = "Yuanji's Blog。分享技术、日语,记录学习、生活。"
# https://github.com/gohugoio/hugo/blob/2fc2e9c8718db2fe60f03bcf3661f449851cfe5f/tpl/tplimpl/embedded/templates/twitter_cards.html
images = ["cover.png"]
mainSections = ["posts"]
# https://gohugo.io/content-management/menus/
[[languages.zh-Hans.menu.main]]
name = "首页"
weight = 10
identifier = "home"
url = "/"
[[languages.zh-Hans.menu.main]]
name = "文章"
weight = 20
identifier = "posts"
url = "/posts/"
[[languages.zh-Hans.menu.main]]
name = "月历"
weight = 30
identifier = "calendar"
url = "/calendar/"
[[languages.zh-Hans.menu.main]]
name = "标签"
weight = 40
identifier = "tags"
url = "/tags/"
[[languages.zh-Hans.menu.main]]
name = "关于"
weight = 50
identifier = "about"
url = "/about/"
[[languages.zh-Hans.menu.main]]
name = "订阅"
weight = 60
identifier = "rss"
url = "/index.xml"
[languages.en]
title = "Yuanji's Blog"
languageCode = 'en'
languageName = 'English'
[languages.en.params]
images = ["cover.en.png"]
[[languages.en.menu.main]]
name = "Home"
weight = 10
identifier = "home"
url = "/"
[[languages.en.menu.main]]
name = "Posts"
weight = 20
identifier = "posts"
url = "/posts/"
[[languages.en.menu.main]]
name = "Calendar"
weight = 30
identifier = "calendar"
url = "/calendar/"
[[languages.en.menu.main]]
name = "Tags"
weight = 40
identifier = "tags"
url = "/tags/"
[[languages.en.menu.main]]
name = "About"
weight = 50
identifier = "about"
url = "/about/"
[[languages.en.menu.main]]
name = "RSS"
weight = 60
identifier = "rss"
url = "/index.xml"
[related]
includeNewer = true
threshold = 80
toLower = true
[[related.indices]]
applyFilter = false
cardinalityThreshold = 0
name = 'keywords'
pattern = ''
type = 'basic'
weight = 100
[[related.indices]]
applyFilter = false
cardinalityThreshold = 0
name = 'date'
pattern = ''
type = 'basic'
weight = 10
[[related.indices]]
applyFilter = false
cardinalityThreshold = 0
name = 'tags'
pattern = ''
type = 'basic'
weight = 80