-
Notifications
You must be signed in to change notification settings - Fork 2
/
hugo.toml
225 lines (200 loc) · 5.78 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
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
baseURL = 'https://seven-demo.supcat.cn/'
languageCode = 'en-us'
title = 'Seven的个人网站'
hasCJKLanguage = true
paginate = 18
enableGitInfo = true
disqusShortname = "" # "seven-demo"
[mediaTypes.'application/x-ndjson']
suffixes = ['ndjson']
[outputs]
home = ["HTML", "Algolia"]
[outputFormats]
[outputFormats.Algolia]
baseName = 'algolia'
isPlainText = true
notAlternative = true
mediaType = 'application/x-ndjson'
[Params]
description = "Seven Demo"
omitCategoryOnMenu = false
categoryName = "Category"
showCodeCopyButton = true
disableToTop = false
disableToBottom = false
enableSearch = true
enableHighlight = true
[Params.head]
# Put custom css file in the assets folder, not in the static folder.
customCSS = "css/custom.css"
[Params.home]
# Customize the type of content to display up-to-date,
# and display all content with 'IsPage=true' if not.
# eg: showContentTypes = ["posts", "blogs"]
showContentTypes = ["posts", "doc"]
# App icon config
[Params.app]
# optional site title override for the app when added to an iOS home screen or Android launcher
title = "Seven Demo"
# whether to omit favicon resource links
noFavicon = false
# modern SVG favicon to use in place of older style .png and .ico files
svgFavicon = "/favicon.svg"
# Safari mask icon color
iconColor = "#ffffff"
# Android browser theme color
themeColor = "#ffffff"
# LOGO
[Params.logo]
# Image logo or Text logo
# Recommended to set image as logo. (prefer)
img = "/images/logo.svg"
img_dark = "/images/logo-footer.svg"
# max height not greater than 56 (px). default: 56 (px)
customLogoHeight = '56'
customLogoWidth = '120'
text = ""
# Copyright
[Params.copyright]
owner = "Seven"
start_year = "2022"
# Article Meta
[Params.articleMeta]
disableHero = false
disableToc = false
# Note: only works if waline or twikoo is enabled.
enablePageView = true
# Society
[Params.society]
# If the provided society does not meet your requirements, you can add custom ones.
# eg: Add "extra_social.html" in the "layout/partials/" directory of your project.
customSocial = "extra_social.html"
[Params.society.email]
enable = true
url = "linzhanqi123@gmail.com"
[Params.society.github]
enable = true
url = "https://github.com/mrhelloboy/hugo-theme-seven-demo"
[Params.society.facebook]
enable = true
url = ""
[Params.society.x] # old twitter
enable = true
url = ""
[Params.society.wechat]
enable = true
OrcodeUrl = ["/images/society/wechat/wechat.jpg"]
# Search-Algolia
[Params.algolia]
# Type of content. see: https://gohugo.io/content-management/types/
type = ["posts", "doc"]
# like pages variables. see: https://gohugo.io/variables/page/
vars = ["title", "description", "permalink"]
# Front Matter Variables.
# see: https://gohugo.io/content-management/front-matter/#front-matter-variables
params = ["tags"]
app_id = "995JRM5ZAU"
api_key = "4a1095e4b8c96d2baee42d4c64b16afa"
index = "hugo_theme_seven_demo"
# see: https://www.algolia.com/doc/api-reference/widgets/snippet/js/#about
snippet_attr = "description"
# see: https://www.algolia.com/doc/api-reference/widgets/highlight/js/#examples
highlight_attr = "title"
# Comments
[Params.comment]
enable = true
# Note: only works if waline or twikoo is enabled.
enableCounts = true
[Params.comment.waline]
enable = true
serverURL = "https://seven-demo.comment.supcat.cn/.netlify/functions/comment"
lang = "en"
reaction = true
search = true
[Params.comment.twikoo]
enable = false
envID = "https://celebrated-youtiao-8a8d79.netlify.app/.netlify/functions/twikoo"
path = ""
lang = "en"
region = ""
# Analytics
[Params.analytics]
[Params.analytics.goatcounter]
enable = true
code = "seven-demo"
[markup]
[markup.highlight]
noClasses = false
[markup.goldmark]
[markup.goldmark.parser]
wrapStandAloneImageWithinParagraph = false
[markup.goldmark.parser.attribute]
block = false
[markup.tableOfContents]
endLevel = 3
startLevel = 2
[menu]
[[menu.main]]
name = "Doc"
pre = ""
url = "/doc/"
weight = 10
[[menu.main]]
name = "Posts"
pre = "pen-tool"
url = "/posts/"
weight = 20
[[menu.main]]
name = "Archive"
url = "/archive"
weight = 30
[[menu.main]]
name = "Goods"
pre = ""
url = "/goods/"
weight = 40
[[menu.main]]
name = "Releases"
pre = "releases"
weight = 50
[[menu.main]]
identifier = "comments-with-waline"
name = 'with waline'
url = 'https://seven-demo.supcat.cn/'
parent = 'Releases'
weight = 1
[[menu.main]]
name = 'with twikoo'
url = 'https://seven-demo-with-twikoo.netlify.app/'
parent = 'Releases'
weight = 2
[module]
# It is recommended that Chinese users modify the proxy configuration
# proxy = 'https://goproxy.cn,direct'
# workspace = 'on'
[[module.imports]]
path = 'github.com/mrhelloboy/seven'
[module.hugoVersion]
extended = false
min = "0.112.0"
[[module.mounts]]
source = "assets"
target = "assets"
[[module.mounts]]
source = "hugo_stats.json"
target = "assets/watching/hugo_stats.json"
[build]
noJSConfigInAssets = true
writeStats = true
[[build.cachebusters]]
source = "assets/watching/hugo_stats\\.json"
target = "styles\\.css"
[[build.cachebusters]]
source = "(postcss|tailwind)\\.config\\.js"
target = "css"
[[build.cachebusters]]
source = "assets/.*\\.(js|ts|jsx|tsx)"
target = "js"
[[build.cachebusters]]
source = "assets/.*\\.(.*)$"
target = "$1"