-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththemeConfig.mjs
More file actions
528 lines (528 loc) · 15.8 KB
/
Copy paththemeConfig.mjs
File metadata and controls
528 lines (528 loc) · 15.8 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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
// 主题配置
export const themeConfig = {
// 站点信息
siteMeta: {
// 站点标题
title: "snowy2002",
// 站点描述
description: "基于 vitepress-theme-curve 搭建的 github pages 站点",
// 站点logo
logo: "/images/logo/blog.png",
// 站点地址
site: "https://snowy2002.github.io",
// 语言
lang: "zh-CN",
// 作者
author: {
name: "snowy2002",
cover: "/images/logo/blog.png",
email: "snowy2002@sjtu.edu.cn",
link: "https://snowy2002.github.io",
},
},
// 备案信息
// icp: "鄂ICP备202411-001号",
// 建站日期
since: "2024-11-1",
// 每页文章数据
postSize: 8,
// inject
inject: {
// 头部
// https://vitepress.dev/zh/reference/site-config#head
header: [
// favicon
["link", { rel: "icon", href: "/images/logo/blog.png" }],
// RSS
[
"link",
{
rel: "alternate",
type: "application/rss+xml",
title: "RSS",
href: "https://blog2.811520.xyz/rss.xml",
},
],
// 预载 CDN
[
"link",
{
crossorigin: "",
rel: "preconnect",
href: "https://s1.hdslb.com",
},
],
[
"link",
{
crossorigin: "",
rel: "preconnect",
href: "https://mirrors.sustech.edu.cn",
},
],
// HarmonyOS font
[
"link",
{
crossorigin: "anonymous",
rel: "stylesheet",
href: "https://s1.hdslb.com/bfs/static/jinkela/long/font/regular.css",
},
],
[
"link",
{
crossorigin: "anonymous",
rel: "stylesheet",
href: "https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/lxgw-wenkai-screen-webfont/1.7.0/style.css",
},
],
// iconfont
[
"link",
{
crossorigin: "anonymous",
rel: "stylesheet",
href: "https://cdn2.codesign.qq.com/icons/g5ZpEgx3z4VO6j2/latest/iconfont.css",
},
],
// Embed code
["link", { rel: "preconnect", href: "https://use.sevencdn.com" }],
["link", { rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin: "" }],
[
"link",
{
crossorigin: "anonymous",
href: "https://use.sevencdn.com/css2?family=Fira+Code:wght@300..700&display=swap",
rel: "stylesheet",
},
],
// 预载 DocSearch
[
"link",
{
href: "https://X5EBEZB53I-dsn.algolia.net",
rel: "preconnect",
crossorigin: "",
},
],
],
},
// 导航栏菜单
nav: [
{
text: "文库",
items: [
{ text: "文章列表", link: "/pages/archives", icon: "article" },
{ text: "全部分类", link: "/pages/categories", icon: "folder" },
{ text: "全部标签", link: "/pages/tags", icon: "hashtag" },
],
},
{
text: "专栏",
items: [
{ text: "技术分享", link: "/pages/categories/技术分享", icon: "technical" },
{ text: "我的项目", link: "/pages/project", icon: "code" },
{ text: "收藏大全", link: "https://daoyi.hidns.vip/#/", icon: "tools" },
{ text: "工作备忘", link: "/pages/categories/工作备忘", icon: "people" },
//{ text: "效率工具", link: "/pages/tools", icon: "tools" },
],
},
{
text: "友圈",
items: [
{ text: "友圈鱼塘", link: "/pages/friends", icon: "fish" },
{ text: "友情链接", link: "/pages/link", icon: "people" },
{ text: "畅所欲言", link: "/pages/message", icon: "chat" },
],
},
{
text: "关于",
items: [
{ text: "关于本站", link: "/pages/about", icon: "contacts" },
{ text: "隐私政策", link: "/pages/privacy", icon: "chat" },
{ text: "版权协议", link: "/pages/cc", icon: "people" },
],
},
],
// 导航栏菜单 - 左侧
navMore: [
{
name: "博客",
list: [
{
icon: "/images/logo/blog.png",
name: "博客主站",
url: "https://snowy2002.github.io/",
},
{
icon: "https://github.githubassets.com/assets/apple-touch-icon-144x144-b882e354c005.png",
name: "博客仓库",
url: "https://github.com/snowy2002/snowy2002.github.io",
},
],
},
{
name: "常用",
list: [
{
icon: "https://tc.alcy.cc/q/20250908/c0013a85d9df7f68d37bd16108eef934.webp",
name: "封面制作",
url: "https://cover.ruom.top/",
},
{
icon: "https://tc.alcy.cc/q/20250908/749990a598727b25bf7e42f7a0dd8b52.webp",
name: "图床博客",
url: "https://blog.jixiaob.cn/?post=93",
},
{
icon: "https://tc.alcy.cc/q/20250908/a8174a16e6918fdbdede41ccb7ab0e95.webp",
name: "短链生成",
url: "https://slink.yuzong.nyc.mn/duanlian",
},
{
icon: "https://tc.alcy.cc/q/20250908/0dc5029a767ab8a1eba609e6354f7506.webp",
name: "开发工具",
url: "https://ctool.dev/",
},
{
icon: "https://t.alcy.cc/mp?random=8",
name: "图片压缩",
url: "https://imgtool.v1.mk/",
}
],
},
{
name: "服务",
list: [
{
icon: "https://pan.811520.xyz/2024-11/1730875618-1730875614898.webp",
name: "今日热榜",
url: "https://hot.imsyy.top/",
},
{
icon: "/images/logo/shuiyuan.png",
name: "水源社区",
url: "https://shuiyuan.sjtu.edu.cn/",
},
{
icon: "/images/logo/jiaowoban.png",
name: "交我办",
url: "https://my.sjtu.edu.cn/ui/task/",
}
],
},
],
// 封面配置
cover: {
// 是否开启双栏布局
twoColumns: false,
// 是否开启封面显示
showCover: {
// 是否开启封面显示 文章不设置cover封面会显示异常,可以设置下方默认封面
enable: true,
// 封面布局方式: left | right | both
coverLayout: 'left',
// 默认封面(随机展示)
defaultCover: [
'https://t.alcy.cc/pc?random=10',
'https://t.alcy.cc/pc?random=20',
'https://t.alcy.cc/pc?random=30',
'https://t.alcy.cc/pc?random=40',
'https://t.alcy.cc/pc?random=50',
'https://t.alcy.cc/pc?random=60',
'https://t.alcy.cc/pc?random=70',
'https://t.alcy.cc/pc?random=80',
'https://t.alcy.cc/pc?random=90',
'https://t.alcy.cc/pc?random=100',
'https://t.alcy.cc/pc?random=110',
'https://t.alcy.cc/pc?random=120',
'https://t.alcy.cc/pc?random=130',
'https://t.alcy.cc/pc?random=140',
'https://t.alcy.cc/pc?random=150',
'https://t.alcy.cc/pc?random=160',
'https://t.alcy.cc/pc?random=170',
'https://t.alcy.cc/pc?random=180',
'https://t.alcy.cc/pc?random=190',
'https://t.alcy.cc/pc?random=200',
'https://t.alcy.cc/pc?random=210',
'https://t.alcy.cc/pc?random=220',
'https://t.alcy.cc/pc?random=230',
'https://t.alcy.cc/pc?random=240',
'https://t.alcy.cc/pc?random=250',
'https://t.alcy.cc/pc?random=260',
'https://t.alcy.cc/pc?random=270',
'https://t.alcy.cc/pc?random=280',
'https://t.alcy.cc/pc?random=290',
'https://t.alcy.cc/pc?random=300',
'https://t.alcy.cc/pc?random=310',
'https://t.alcy.cc/pc?random=320',
'https://t.alcy.cc/pc?random=330',
'https://t.alcy.cc/pc?random=340',
'https://t.alcy.cc/pc?random=350',
'https://t.alcy.cc/pc?random=360',
'https://t.alcy.cc/pc?random=370',
'https://t.alcy.cc/pc?random=380',
'https://t.alcy.cc/pc?random=390',
'https://t.alcy.cc/pc?random=400',
'https://t.alcy.cc/pc?random=410',
'https://t.alcy.cc/pc?random=420',
'https://t.alcy.cc/pc?random=430',
'https://t.alcy.cc/pc?random=440',
'https://t.alcy.cc/pc?random=450',
'https://t.alcy.cc/pc?random=460',
'https://t.alcy.cc/pc?random=470',
'https://t.alcy.cc/pc?random=480',
'https://t.alcy.cc/pc?random=490',
'https://t.alcy.cc/pc?random=500',
'https://t.alcy.cc/pc?random=510',
'https://t.alcy.cc/pc?random=520',
'https://t.alcy.cc/pc?random=530',
'https://t.alcy.cc/pc?random=540',
'https://t.alcy.cc/pc?random=550',
'https://t.alcy.cc/pc?random=560',
'https://t.alcy.cc/pc?random=570',
'https://t.alcy.cc/pc?random=580',
'https://t.alcy.cc/pc?random=590',
'https://t.alcy.cc/pc?random=600',
'https://t.alcy.cc/pc?random=610',
'https://t.alcy.cc/pc?random=620',
'https://t.alcy.cc/pc?random=630',
'https://t.alcy.cc/pc?random=640',
'https://t.alcy.cc/pc?random=650',
'https://t.alcy.cc/pc?random=660',
'https://t.alcy.cc/pc?random=670',
'https://t.alcy.cc/pc?random=680',
'https://t.alcy.cc/pc?random=690',
'https://t.alcy.cc/pc?random=700',
'https://t.alcy.cc/pc?random=710',
'https://t.alcy.cc/pc?random=720',
'https://t.alcy.cc/pc?random=730',
'https://t.alcy.cc/pc?random=740',
'https://t.alcy.cc/pc?random=750',
'https://t.alcy.cc/pc?random=760',
'https://t.alcy.cc/pc?random=770',
'https://t.alcy.cc/pc?random=780',
'https://t.alcy.cc/pc?random=790',
'https://t.alcy.cc/pc?random=800',
'https://t.alcy.cc/pc?random=810',
'https://t.alcy.cc/pc?random=820',
'https://t.alcy.cc/pc?random=830',
'https://t.alcy.cc/pc?random=840',
'https://t.alcy.cc/pc?random=850',
'https://t.alcy.cc/pc?random=860',
'https://t.alcy.cc/pc?random=870',
'https://t.alcy.cc/pc?random=880',
'https://t.alcy.cc/pc?random=890',
// 'https://t.alcy.cc/pc',
// 'https://pan.811520.xyz/2024-10/1728279557702.webp',
// 'https://pan.811520.xyz/2024-10/1728387512098.webp',
]
}
},
// 页脚信息
footer: {
// 社交链接(请确保为偶数个)
social: [
{
icon: "email",
link: "mailto:snowy2002@sjtu.edu.cn",
},
{
icon: "github",
link: "https://github.com/snowy2002/",
},
{
icon: "/images/logo/leetcode.png",
link: "https://leetcode.cn/u/snowy-sjtu/",
},
{
icon: "/images/logo/codeforces.png",
link: "https://codeforces.com/profile/snowy2002",
},
],
// sitemap
sitemap: [
{
text: "我的博客",
items: [
{ text: "近期文章", link: "/" },
{ text: "全部分类", link: "/pages/categories" },
{ text: "全部标签", link: "/pages/tags" },
{ text: "文章归档", link: "/pages/archives" },
],
},
{
text: "云端平台",
items: [
{ text: "Vercel", link: "https://vercel.com/", newTab: true },
{ text: "NorthFlank", link: "https://app.northflank.com/", newTab: true },
{ text: "Koyeb", link: "https://app.koyeb.com/", newTab: true },
{ text: "Huawei", link: "https://www.huaweicloud.com/intl/zh-cn/", newTab: true },
],
},
{
text: "我的专栏",
items: [
{ text: "技术分享", link: "/pages/categories/技术分享" },
{ text: "我的项目", link: "/pages/project" },
{ text: "收藏大全", link: "https://daoyi.hidns.vip/#/", newTab: true },
{ text: "工作备忘", link: "/pages/categories/工作备忘" },
],
},
{
text: "项目推荐",
items: [
{ text: "edgetunnel", link: "https://github.com/cmliu/edgetunnel", newTab: true },
{ text: "twikoo", link: "https://github.com/yutian81/twikoo", newTab: true },
{ text: "alist", link: "https://alist.nn.ci/zh/", newTab: true },
{ text: "nezha", link: "https://nezha.wiki/guide/dashboard.html", newTab: true },
],
},
{
text: "页面导航",
items: [
//{ text: "畅所欲言", link: "/pages/message" },
{ text: "关于本站", link: "/pages/about" },
{ text: "隐私政策", link: "/pages/privacy" },
{ text: "版权协议", link: "/pages/cc" },
{ text: "致谢名单", link: "/pages/thanks" },
],
},
{
text: "网站服务",
items: [
{ text: "音乐时刻", link: "https://blog.811520.xyz/music/", newTab: true },
{ text: "站点状态", link: "https://uptime.ytian.us.kg/status/service", newTab: true },
{ text: "站点订阅", link: "https://blog2.811520.xyz/rss.xml", newTab: true },
{ text: "问题反馈", link: "https://github.com/snowy2002/snowy2002.github.io/issues", newTab: true, },
],
},
],
},
// 评论
comment: {
enable: true,
// 评论系统选择
// artalk / twikoo
type: "twikoo",
// artalk
// https://artalk.js.org/
artalk: {
site: "",
server: "",
},
// twikoo
// https://twikoo.js.org/
twikoo: {
// 必填,若不想使用 CDN,可以使用 pnpm add twikoo 安装并引入
js: "https://registry.npmmirror.com/twikoo/1.6.44/files/dist/twikoo.min.js",
// js: "https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/twikoo/1.6.39/twikoo.all.min.js",
// envId: "https://twikoo.24811213.xyz/",
envId: "https://teal-salamander-81a2f7.netlify.app/.netlify/functions/twikoo",
// 环境地域,默认为 ap-shanghai,腾讯云环境填 ap-shanghai 或 ap-guangzhou;Vercel 环境不填
region: "",
lang: "zh-CN",
},
},
// 侧边栏
aside: {
// 站点简介
hello: {
enable: true,
text: "这里有我的各种<strong>折腾笔记</strong>,也有一些<strong>工作备忘</strong>和<strong>生活随笔</strong>。",
},
// 目录
toc: {
enable: true,
},
// 标签
tags: {
enable: true,
},
// 倒计时
countDown: {
enable: true,
// 倒计时日期
data: {
name: "春节",
date: "2026-02-17",
},
},
// 站点数据
siteData: {
enable: true,
},
},
// 友链
friends: {
// 友链朋友圈
circleOfFriends: "https://blog2.811520.xyz/blogrss/",
// 动态友链
dynamicLink: {
server: "",
app_token: "",
table_id: "",
},
},
// 音乐播放器
// https://github.com/imsyy/Meting-API
music: {
enable: true,
// url
url: "https://api.injahow.cn/meting/",
// id
id: 14378694248,
// netease / tencent / kugou
server: "netease",
// playlist / album / song
type: "playlist",
},
// 搜索
// https://www.algolia.com/
search: {
enable: true,
appId: "J8AAAZLZZ7",
apiKey: "94c1d72ea8e1533fc67c3e7244c7e196",
indexName: "daoyi-wiki",
},
// 打赏
rewardData: {
enable: false,
wechat: "",
alipay: "",
},
// 图片灯箱
fancybox: {
enable: true,
js: "https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/fancyapps-ui/5.0.36/fancybox/fancybox.umd.min.js",
css: "https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/fancyapps-ui/5.0.36/fancybox/fancybox.min.css",
},
// 外链中转
jumpRedirect: {
enable: true,
// 排除类名
exclude: [
"cf-friends-link",
"upyun",
// "icp",
"author",
"rss",
"cc",
"power",
"social-link",
"link-text",
"travellings",
"post-link",
"report",
"more-link",
"skills-item",
"right-menu-link",
"link-card",
],
},
// 站点统计
tongji: {
"51la": "3LlkSubt2HvotYRj",
},
};