forked from imsyy/vitepress-theme-curve
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththemeConfig.mjs
More file actions
437 lines (436 loc) · 10.8 KB
/
themeConfig.mjs
File metadata and controls
437 lines (436 loc) · 10.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
// 主题配置
export const themeConfig = {
// 站点信息
siteMeta: {
// 站点标题
title: "upbingun 的博客",
// 站点描述
description: "Blogs by upbingun: 分享一些奇奇怪怪的东西",
// 站点logo
logo: "/images/logo/logo.webp",
// 站点地址
site: "https://upbingun.github.io",
// 语言
lang: "zh-CN",
// 作者
author: {
name: "upbingun",
cover: "/images/logo/logo.webp",
email: "upbingun@163.com",
link: "https://upbingun",
},
},
// 备案信息
icp: "萌ICP备20255072号",
// 建站日期
since: "2025-10-24",
// 每页文章数据
postSize: 8,
// inject
inject: {
// 头部
// https://vitepress.dev/zh/reference/site-config#head
header: [
// favicon
["link", { rel: "icon", href: "/favicon.ico" }],
// RSS
[
"link",
{
rel: "alternate",
type: "application/rss+xml",
title: "RSS",
href: "https://blog.imsyy.top/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: "/pages/tools", icon: "tools" },
],
},
{
text: "友链",
items: [
{ text: "友链鱼塘", link: "/pages/friends", icon: "fish" },
{ text: "友情链接", link: "/pages/link", icon: "people" },
],
},
{
text: "我的",
items: [
{ text: "畅所欲言", link: "/pages/message", icon: "chat" },
{ text: "致谢名单", link: "/pages/thanks", icon: "reward" },
{ text: "关于本站", link: "/pages/about", icon: "contacts" },
],
},
],
// 导航栏菜单 - 左侧
navMore: [
{
name: "博客",
list: [
{
icon: "/images/logo/logo.webp",
name: "主站",
url: "/",
},
// {
// icon: "/images/logo/logo.webp",
// name: "博客镜像站",
// url: "https://blog-backup.imsyy.top/",
// },
],
},
{
name: "服务",
list: [
{
icon: "https://pic.efefee.cn/uploads/2024/04/08/6613465358077.png",
name: "起始页",
url: "https://nav.imsyy.top/",
},
{
icon: "https://pic.efefee.cn/uploads/2024/04/08/661346d418ad7.png",
name: "今日热榜",
url: "https://hot.imsyy.top/",
},
{
icon: "https://pic.efefee.cn/uploads/2024/04/08/66134722586fa.png",
name: "站点监测",
url: "https://status.imsyy.top/",
},
],
},
{
name: "项目",
list: [
{
icon: "/images/logo/logo.webp",
name: "Curve",
url: "https://github.com/imsyy/vitepress-theme-curve",
},
{
icon: "https://pic.efefee.cn/uploads/2024/04/07/66124f5fc63c8.png",
name: "SPlayer",
url: "https://github.com/imsyy/SPlayer",
},
{
icon: "https://pic.efefee.cn/uploads/2024/04/08/6613465358077.png",
name: "Snavigation",
url: "https://github.com/imsyy/SPlayer",
},
{
icon: "/images/logo/logo.webp",
name: "Home",
url: "https://github.com/imsyy/home",
},
{
icon: "https://pic.efefee.cn/uploads/2024/04/08/661346d418ad7.png",
name: "DailyHotApi",
url: "https://github.com/imsyy/DailyHotApi",
},
{
icon: "https://pic.efefee.cn/uploads/2024/04/08/66134722586fa.png",
name: "site-status",
url: "https://github.com/imsyy/site-status",
},
],
},
],
// 封面配置
cover: {
// 是否开启双栏布局
twoColumns: false,
// 是否开启封面显示
showCover: {
// 是否开启封面显示 文章不设置cover封面会显示异常,可以设置下方默认封面
enable: true,
// 封面布局方式: left | right | both
coverLayout: 'both',
// 默认封面(随机展示)
defaultCover: [
'https://example.com/1.avif',
'https://example.com/2.avif',
'https://example.com/3.avif'
]
}
},
// 页脚信息
footer: {
// 社交链接(请确保为偶数个)
social: [
{
icon: "email",
link: "mailto:upbingun@163.com",
},
{
icon: "github",
link: "https://www.github.com/upbingun/",
},
// {
// icon: "telegram",
// link: "https://t.me/bottom_user",
// },
{
icon: "bilibili",
link: "https://space.bilibili.com/98544142",
},
// {
// icon: "qq",
// link: "https://res.abeim.cn/api/qq/?qq=1539250352",
// },
// {
// icon: "twitter-x",
// link: "https://twitter.com/upbingun",
// },
],
// sitemap
sitemap: [
{
text: "博客",
items: [
{ text: "近期文章", link: "/" },
{ text: "全部分类", link: "/pages/categories" },
{ text: "全部标签", link: "/pages/tags" },
{ text: "文章归档", link: "/pages/archives", newTab: true },
],
},
{
text: "项目",
items: [
{ text: "Home", link: "https://github.com/upbingun/", newTab: true },
{ text: "Linegros", link: "https://github.com/SweetPeach-Games/Linegros", newTab: true },
],
},
{
text: "专栏",
items: [
{ text: "技术分享", link: "/pages/categories/技术分享" },
{ text: "我的项目", link: "/pages/project" },
{ text: "效率工具", link: "/pages/tools" },
],
},
{
text: "页面",
items: [
{ text: "畅所欲言", link: "/pages/message" },
{ text: "关于本站", link: "/pages/about" },
{ text: "隐私政策", link: "/pages/privacy" },
{ text: "版权协议", link: "/pages/cc" },
],
},
{
text: "服务",
items: [
{
text: "API调用",
link: "mailto:upbingun@163.com",
newTab: true,
},
],
},
],
},
// 评论
comment: {
enable: false,
// 评论系统选择
// artalk / twikoo
type: "artalk",
// artalk
// https://artalk.js.org/
artalk: {
site: "",
server: "",
},
// twikoo
// https://twikoo.js.org/
twikoo: {
// 必填,若不想使用 CDN,可以使用 pnpm add twikoo 安装并引入
js: "https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/twikoo/1.6.39/twikoo.all.min.js",
envId: "",
// 环境地域,默认为 ap-shanghai,腾讯云环境填 ap-shanghai 或 ap-guangzhou;Vercel 环境不填
region: "ap-shanghai",
lang: "zh-CN",
},
},
// 侧边栏
aside: {
// 站点简介
hello: {
enable: true,
text: "你们好💀小朋友💀,我是upbingun💀,害怕的人已经不敢看这么奇怪的文章了😈!",
},
// 目录
toc: {
enable: true,
},
// 标签
tags: {
enable: true,
},
// 倒计时
countDown: {
enable: true,
// 倒计时日期
data: {
name: "春节",
date: "2026-02-17",
},
},
// 站点数据
siteData: {
enable: true,
},
},
// 友链
friends: {
// 友链朋友圈
circleOfFriends: "",
// 动态友链
dynamicLink: {
server: "",
app_token: "",
table_id: "",
},
},
// 音乐播放器
// https://github.com/imsyy/Meting-API
music: {
enable: false,
// url
url: "https://api-meting.example.com",
// id
id: 9379831714,
// netease / tencent / kugou
server: "netease",
// playlist / album / song
type: "playlist",
},
// 搜索
// https://www.algolia.com/
search: {
enable: false,
appId: "",
apiKey: "",
},
// 打赏
rewardData: {
enable: false,
// 微信二维码
wechat: "https://pic.efefee.cn/uploads/2024/04/07/66121049d1e80.webp",
// 支付宝二维码
alipay: "https://pic.efefee.cn/uploads/2024/04/07/661206631d3b5.webp",
},
// 图片灯箱
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": "",
},
};