-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
188 lines (174 loc) · 5.23 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
baseURL = "https://tyrangyang.github.io/TyrangYang_blog/"
# all relative URLs would instead be canonicalized using baseURL
# really necessary when you have sub-path in baseUrl
# https://gohugo.io/content-management/urls/#canonicalization
canonifyURLs = true
enableEmoji = true
# [en, zh-cn, fr, ...] determines default content language
defaultContentLanguage = "en"
# language code
languageCode = "en"
title = "TyrangYang_Blog"
# Change the default theme to be use when building the site with Hugo
theme = "LoveIt"
[author]
name = "Haolin Yang"
link = "https://tyrangyang.github.io/"
[params]
# LoveIt theme version
version = "0.2.X"
[params.search]
enable = true
# 搜索引擎的类型 ("lunr", "algolia")
type = "algolia"
# 文章内容最长索引长度
contentLength = 4000
# 搜索框的占位提示语
placeholder = ""
# 最大结果数目
maxResultLength = 10
# 搜索结果中高亮部分的 HTML 标签
highlightTag = "em"
absoluteURL = true
[params.search.algolia]
index = "blog"
appID = "QXEV52XWDS"
searchKey = "db56d05ebbeed337adca1ef261004dcc"
[params.home]
[params.home.profile]
enable = true
avatarURL = "/images/art2.png"
subtitle = "Stay Home & Be safe!"
typeit = true
social = true
[params.home.posts]
enable = true
paginate = 10
[params.social]
GitHub = "TyrangYang"
Linkedin = "haolin-yang-2b3a061a3"
Twitter = "@TyrangYang"
Email = "haolinyang95@gamil.com"
[params.page]
hiddenFromHomePage = false
hiddenFromSearch = false
linkToMarkdown = true
[params.page.toc]
enable = false
auto = false
[params.page.code]
# 是否显示代码块的复制按钮
copy = true
# 默认展开显示的代码行数
maxShownLines = 1000
[params.footer]
enable = true
# LoveIt 新增 | 0.2.0 自定义内容 (支持 HTML 格式)
custom = ''
# LoveIt 新增 | 0.2.0 是否显示 Hugo 和主题信息
hugo = true
# LoveIt 新增 | 0.2.0 是否显示版权信息
copyright = true
# LoveIt 新增 | 0.2.0 是否显示作者
author = true
# 网站创立年份
# since = 2019
# 许可协议信息 (支持 HTML 格式)
license = '<a rel="license" style="position:relative; top:3px" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/80x15.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/">Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License</a>'
[menu]
[[menu.main]]
identifier = "posts"
# you can add extra information before the name (HTML format is allowed), such as icons
pre = "<i class='fas fa-book-open'></i>"
name = " Posts"
url = "/posts/"
# title will be shown when you hover on this menu link
title = ""
weight = 1
[[menu.main]]
identifier = "tags"
pre = "<i class='fas fa-tags'></i>"
name = " Tags"
url = "/tags/"
title = ""
weight = 2
[[menu.main]]
identifier = "categories"
pre = "<i class='fab fa-buffer'></i>"
name = " Categories"
url = "/categories/"
title = ""
weight = 3
[[menu.main]]
identifier = "github"
pre = "<i class='fab fa-github fa-fw fa-fw'></i>"
name = ""
url = "https://github.com/TyrangYang/TyrangYang_blog"
title = "Blog github"
weight = 4
[[menu.main]]
identifier = "home"
pre = '<i class="fas fa-home"></i>'
name = ""
url = "https://tyrangyang.github.io/"
title = "home page"
weight = 5
# Hugo 解析文档的配置
[markup]
# 语法高亮设置 (https://gohugo.io/content-management/syntax-highlighting)
[markup.highlight]
codeFences = true
guessSyntax = true
lineNoStart = 1
lineNos = true
lineNumbersInTable = true
noClasses = false
style = "monokai"
tabWidth = 4
# 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.tableOfContents]
startLevel = 2
endLevel = 6
# 网站地图信息
[sitemap]
changefreq = "weekly"
filename = "sitemap.xml"
priority = 0.5
# Permalinks 信息 (https://gohugo.io/content-management/urls/#permalinks)
[Permalinks]
# posts = ":year/:month/:filename"
posts = ":filename"
# 隐私信息设置 (https://gohugo.io/about/hugo-and-gdpr/)
[privacy]
[privacy.youtube]
privacyEnhanced = true
# 用于输出 Markdown 格式文档的设置
[mediaTypes]
[mediaTypes."text/plain"]
suffixes = ["md"]
# 用于输出 Markdown 格式文档的设置
[outputFormats.MarkDown]
mediaType = "text/plain"
isPlainText = true
isHTML = false
# 用于 Hugo 输出文档的设置
[outputs]
# LoveIt 更改 | 0.2.0
home = ["HTML", "RSS", "JSON"]
page = ["HTML", "MarkDown"]
section = ["HTML", "RSS"]
taxonomy = ["HTML", "RSS"]
taxonomyTerm = ["HTML"]