-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
86 lines (77 loc) · 2.76 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
baseURL = "https://flygar.org/"
languageCode = "zh-CN"
title = "Flygar's Blog"
theme = "maupassant"
## 保持分类的原始名字(false会做转小写处理)
preserveTaxonomyNames = true
## 是否禁止 URL Path 转小写
disablePathToLower = true
## 自定义摘要默认是70
summaryLength = 40
## hasCJKLanguage = true ???
### publishdir = "public"
### canonifyurlsvv= true
[author]
name = "zhutou"
[params]
author = "Flygar"
subtitle = "图床在github上,翻墙浏览体验更加"
keywords = "flygar,golang,go语言,go,linux"
description = "flygar,golang,go语言,go,linux"
# busuanzi = true # 启用不算子网页统计, 默认false
localSearch = true # 启用本地搜索
# 全局开关,你也可以在每一篇内容的 front matter 中针对单篇内容关闭或开启某些功能
# toc = true # 是否开启目录, 默认false
draft = false # 是否作为草稿, 默认true
comment = false # 是否启用评论系统, 默认true
## 配置网站菜单
[menu]
[[menu.main]]
identifier = "archives"
name = "归档"
url = "/archives/"
weight = 1
[[menu.main]]
identifier = "about"
name = "关于"
url = "/about/"
weight = 2
[[menu.main]]
identifier = "comment"
name = "留言板"
url = "/comment/"
weight = 3
## 代码高亮, 更多参考: https://gohugo.io/getting-started/configuration-markup#highlight
[markup]
[markup.highlight]
lineNos = false # 开启行号显示,默认为false
style = "dracula" # 比较中意的样式 rrt, pygments, rainbow_dash, pastie, native, dracula, github, solarized-dark
## 评论
## 配置 utteranc 评论,教程参考 https://utteranc.es/
[params.utteranc]
enable = true
repo = "flygar/comments" # 存储评论的Repo,格式为 owner/repo
issueTerm = "pathname" #表示你选择以那种方式让github issue的评论和你的文章关联。
theme = "github-light" # 样式主题,有github-light和github-dark两种
## 开启版权声明,协议名字和链接都可以换
[params.cc]
name = "知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议"
link = "https://creativecommons.org/licenses/by-nc-nd/4.0/"
## 友情连接,可以多个
[[params.links]]
title = "飞雪无情的博客"
name = "flysnow"
url = "https://www.flysnow.org"
[[params.links]]
title = "ngzhio"
name = "ngzhio"
url = "https://ngzhio.github.io/"
## 侧边栏广告位, 可以多个
[[params.ads]]
title = "Cubecloud"
url = "https://www.cubecloud.net/aff.php?aff=1764"
img = "https://raw.githubusercontent.com/Flygar/blogPics/dev/img/2020-03-30-23-31-06.png"
#[[params.ads]]
# title = "TripodCloud Network"
# url = "https://clients.tripodcloud.com/aff.php?aff=528"
# img = "https://i.loli.net/2020/03/05/ukL4SFbdYah12em.png"