-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.toml.old
More file actions
277 lines (229 loc) · 5.46 KB
/
config.toml.old
File metadata and controls
277 lines (229 loc) · 5.46 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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
baseURL = "https://hobbytp.github.io/"
title = "Peng Tan's AI Blog"
theme = "PaperMod"
defaultContentLanguage = "zh"
defaultContentLanguageInSubdir = true
enableGitInfo = false
enableRobotsTXT = true
buildDrafts = false
buildFuture = false
buildExpired = false
# 忽略不必要的文件以提升性能
ignoreFiles = ["\\.git", "\\.vscode", "\\.idea", "node_modules", "public", "resources/_gen", "\\.DS_Store"]
[pagination]
pageSize = 5
# 图片优化配置
[imaging]
quality = 85
resampleFilter = "Lanczos"
# WebP格式支持
[outputFormats.WebP]
baseName = "image"
mediaType = "image/webp"
# 图片处理设置
[params.imaging]
# 响应式图片尺寸
sizes = [320, 640, 960, 1280, 1920]
# 图片质量
quality = 85
# 构建优化配置
[build]
useResourceCacheWhen = "fallback"
writeStats = false
noJSConfigInAssets = false
# 开发环境特殊配置
[build.buildDrafts]
enable = true
[build.buildFuture]
enable = true
# 资源处理优化
[assets]
disableFingerprinting = false
[taxonomies]
category = "categories"
tag = "tags"
series = "series"
[assets.css]
minify = true
[assets.js]
minify = true
# 性能优化参数
[params.performance]
cacheBusting = true
preloadFonts = true
enableGzip = true
enableBrotli = true
# HTTP缓存策略
[caches]
[caches.getresource]
dir = ":cacheDir/:project"
maxAge = "10m"
[caches.getjson]
dir = ":cacheDir/json"
maxAge = "10m"
# CDN和缓存优化
[params.cdn]
enable = false
url = ""
[params.cache]
enable = true
maxAge = "1h"
[markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
hardwraps = false
xhtml = false
[markup.goldmark.parser]
autoHeadingID = true
autoHeadingIDType = "github"
attribute = true
[markup.goldmark.extensions]
definitionList = true
footnote = true
linkify = true
strikethrough = true
table = true
taskList = true
typographer = true
[markup.tableOfContents]
endLevel = 6
ordered = false
startLevel = 2
[markup.highlight]
style = "github"
lineNos = true
lineNumbersInTable = true
noClasses = true
[params]
env = "production"
title = "Peng Tan's AI Blog"
description = "一个关注 AI 各领域的专题博客"
author = "Peng Tan"
# mainSections = ["zh"] # Removed in favor of languages
ShowReadingTime = true
ShowWordCount = true
ShowShareButtons = true
ShowPostNavLinks = true
ShowBreadCrumbs = true
ShowCodeCopyButtons = true
ShowToc = true
enableSchemaOrg = true
ShowLanguageSwitch = true
# Sidebar configuration
[params.sidebar]
avatar = "/images/profile.jpg"
email = "hobbytp@gmail.com"
slogan = "Make yesterday better"
showOnlineStatus = false
# Projects in sidebar
[[params.sidebar.projects]]
name = "My Blogs"
url = "https://github.com/hobbytp/hobbytp.github.io"
description = "精选技术博客"
[[params.sidebar.projects]]
name = "MyDeeperResearch"
url = "https://github.com/hobbytp/DeeperResearch"
description = "AI深度调研助手"
# Date format
DateFormat = "2025-10-01"
# Comments functionality (disabled)
[params.comments]
enable = false
# Search functionality
[params.search]
enable = true
[params.profileMode]
enabled = false
title = "Peng Tan's AI Blog"
subtitle = "关注 AI 领域的论文解读、最新技术、开源项目、知名人物访谈、动态和商业产品介绍"
imageUrl = "/images/profile.jpg"
imageTitle = "Peng Tan"
# 添加按钮链接到关于作者页面
[[params.profileMode.buttons]]
name = "关于作者"
url = "/about"
[[params.profileMode.buttons]]
name = "GitHub"
url = "https://github.com/hobbytp"
[[params.profileMode.buttons]]
name = "最新文章"
url = "/"
# 这会生成 /index.json,供前端搜索用。
[outputs]
home = ["HTML", "RSS", "JSON"]
[languages]
[languages.zh]
languageName = "中文"
weight = 1
contentDir = "content/zh"
title = "Peng Tan's AI Blog"
description = "一个关注 AI 各领域的专题博客"
[languages.zh.menu]
[[languages.zh.menu.main]]
name = "🏠 首页"
url = "/"
weight = 1
[[languages.zh.menu.main]]
name = "📝 文章"
url = "/posts/"
weight = 2
[[languages.zh.menu.main]]
name = "🏷️ 分类"
url = "/categories/"
weight = 3
[[languages.zh.menu.main]]
name = "🤖 多智能体"
url = "/categories/mas/"
weight = 4
[[languages.zh.menu.main]]
name = "📚 技术栈"
url = "/categories/technologies/"
weight = 5
[[languages.zh.menu.main]]
name = "🔍 搜索"
url = "/search/"
weight = 6
[[languages.zh.menu.main]]
name = "行业动态"
url = "/categories/news"
weight = 15
[[languages.zh.menu.main]]
name = "课程"
url = "/categories/courses"
weight = 16
[[languages.zh.menu.main]]
name = "关于作者"
url = "/about"
weight = 17
[[languages.zh.menu.main]]
name = "本站搜索"
url = "/search"
weight = 18
[languages.en]
languageName = "English"
weight = 2
contentDir = "content/en"
title = "Peng Tan's AI Blog (EN)"
description = "AI Blog by Peng Tan"
[languages.en.menu]
[[languages.en.menu.main]]
name = "🏠 Home"
url = "/"
weight = 1
[[languages.en.menu.main]]
name = "📝 Posts"
url = "/posts/"
weight = 2
[[languages.en.menu.main]]
name = "🏷️ Categories"
url = "/categories/"
weight = 3
[[languages.en.menu.main]]
name = "🔍 Search"
url = "/search/"
weight = 6
[[languages.en.menu.main]]
name = "About"
url = "/about"
weight = 17