-
Notifications
You must be signed in to change notification settings - Fork 0
/
hugo.toml
149 lines (126 loc) · 4.49 KB
/
hugo.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
baseURL = "https://whiteding.fun/"
# languageCode = 'en-us'
languageCode = "zh-CN"
title = "White"
theme = "maupassant"
publishDir = "docs" # 修改静态代码文件夹为docs目录
# googleAnalytics = "" # UA-XXXXXXXX-X/G-XXXXXXXXXX
## 保持分类的原始名字(false会做转小写处理)
preserveTaxonomyNames = true
## 是否禁止URL Path转小写
disablePathToLower = true
hasCJKLanguage = true
summaryLength = 200
# disqusShortname = "yourdiscussshortname" ## 是否开启disqus评论,不要和utteranc同时开启
[author]
name = "whiteding"
[params]
author = "whiteding"
subtitle = "Stay foolish, Stay hungry!"
keywords = "DS, DeepLearning"
description = ""
avatar_img = "/img/avatar3.png"
busuanzi = false #启用不算子网页统计
googleAd = "" #ca-pub-xxxxxxxxxxxxxx
localSearch = true # 启用本地搜索
# 这里我存放在了主题的static文件夹里,根目录的似乎也可以
customCSS = ['douban.css', 'other.css']
# if ['custom.css'], load '/static/css/custom.css' file
customJS = ['douban.js']
# if ['custom.js'], load '/static/js/custom.js' file
# 全局开关,你也可以在每一篇内容的 front matter 中针对单篇内容关闭或开启某些功能
toc = true # 是否开启目录
## 配置头部跳转按钮
[menu]
[[menu.main]]
identifier = "categories"
# name = "<i class='fas fa-th'></i> 分类"
name = "<i class='fas fa-layer-group'></i> 分类"
url = "/categories/"
weight = 2
[[menu.main]]
identifier = "tags"
name = "<i class='fas fa-tag'></i> 标签"
url = "/tags/"
weight = 3
[[menu.main]]
identifier = "archives"
name = "<i class='fas fa-archive'></i> 归档"
url = "/archives/"
weight = 4
[[menu.main]]
identifier = "about"
name = "<i class='fas fa-user'></i> 关于"
url = "/about/"
weight = 5
## 友情链接,可以多个
[[params.links]]
title = "instagram"
name = "Instagram"
icon = "fab fa-instagram fa-lg"
url = "https://www.instagram.com/whiteding94/"
[[params.links]]
title = "blog"
name = "知乎"
icon = "far fa-comment fa-lg"
url = "https://www.zhihu.com/people/ding-shu-hao"
# 右边栏头像下方个人联系方式
[[params.avatar]]
title = "email"
url = "mailto:[email protected]"
icon = "fa fa-envelope-square fa-lg"
[[params.avatar]]
title = "linkedin"
url = "https://www.linkedin.com/in/white-ding-7b5151a7/"
icon = "fab fa-linkedin fa-lg"
[[params.avatar]]
title = "github"
url = "https://github.com/Shu-HowTing"
icon = "fab fa-github fa-lg"
# ## 侧边栏广告位
# [[params.ads]]
# title = "【2019双12】ALL IN CLoud 低至1折"
# url = "https://www.aliyun.com/minisite/goods?userCode=jdg9oj97&share_source=copy_link"
# img = "https://img.alicdn.com/tfs/TB1_rYHo7P2gK0jSZPxXXacQpXa-690-388.jpg"
# [[params.ads]]
# title = "助力产业智慧升级,云服务器首年88元起,更有千元代金券礼包免费领!"
# url = "https://cloud.tencent.com/act/cps/redirect?redirect=1048&cps_key=14ff722692ac784fa8c3301c8c28d924&from=console"
# img = "https://upload-dianshi-1255598498.file.myqcloud.com/345-7c71532bd4935fbdd9a67c1a71e577b1767b805c.200%E7%89%88%E6%9C%ACB.jpg"
# [[params.ads]]
# title = "【渠道专享低折扣】11月特惠 限时2折"
# url = "https://www.aliyun.com/acts/limit-buy?userCode=jdg9oj97"
# img = "https://img.alicdn.com/tfs/TB1hblJl7Y2gK0jSZFgXXc5OFXa-750-400.jpg"
# 配置 utteranc评论,教程参考 https://utteranc.es/
[params.utteranc]
enable = false
repo = "Shu-HowTing/hugo_blog_comment" ##换成自己得
issueTerm = "pathname"
theme = "github-light"
# 配置 waline 评论系统,教程参考 https://waline.js.org/
[params.waline]
enable = true
locale = "zh-CN" # 设置语言
placeholder = "说点什么吧..."
serverURL = "https://white-waline.netlify.app/.netlify/functions/comment" #换成你的serverURL
# 开启版权声明,协议名字和链接都可以换
[params.cc]
name = "知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议"
link = "https://creativecommons.org/licenses/by-nc-nd/4.0/"
# 配置代码高亮
[markup]
[markup.highlight]
codeFences = true
guessSyntax = true
# hl_Lines = ""
lineNoStart = 1
lineNos = true
lineNumbersInTable = false
noClasses = true
# [murphy, monokailight, github, solarized-light, tango, pygments]
style = "trac"
tabWidth = 4
# 文章toc的层级目录
[markup.tableOfContents]
endLevel = 4
ordered = false
startLevel = 2