Repository navigation
Expand file tree
/
Copy paththemeConfig.mjs
More file actions
368 lines (367 loc) · 8.64 KB
/
Copy paththemeConfig.mjs
File metadata and controls
368 lines (367 loc) · 8.64 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
// 主题配置
export const themeConfig = {
// 站点信息
siteMeta: {
// 站点标题
title: "RSEGordon",
// 站点描述
description: "登の小窝",
// 站点logo
logo: "/images/logo/logo.jpg",
// 站点地址
site: "https://clawblog.rseg.club",
// 语言
lang: "zh-CN",
// 作者
author: {
name: "RSEGordon",
cover: "/images/logo/logo.jpg",
email: "114514@gmail.com",
link: "/",
},
},
// 备案信息
icp: {
link: "https://beian.miit.gov.cn/",
text: "鲁ICP备2025151709号",
police: {
link: "https://beian.mps.gov.cn/#/query/webSearch?code=53010202002175",
text: "滇公网安备53010202002175号"
}
},
// 建站日期
since: "2026-04-18",
// 每页文章数据
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/project", icon: "code" },
],
},
{
text: "关于本站",
items: [
{ text: "关于本站", link: "/pages/about", icon: "contacts" },
],
},
{
text: "友链",
items: [
{ text: "友链", link: "/pages/link", icon: "people" },
],
},
],
// 导航栏菜单 - 左侧
navMore: [
{
name: "友链",
list: [
{
icon: "/images/logo/logo.jpg",
name: "GitHub",
url: "https://github.com/RSEGordon",
},
{
icon: "/images/logo/logo.jpg",
name: "Bilibili",
url: "https://space.bilibili.com/339232775",
},
{
icon: "/images/logo/logo.jpg",
name: "QQ群",
url: "https://qm.qq.com/q/N31GS4FeeI",
},
{
icon: "/images/logo/logo.jpg",
name: "500px",
url: "https://500px.com.cn/RSEGordon",
},
],
},
],
// 封面配置
cover: {
// 是否开启双栏布局
twoColumns: false,
// 是否开启封面显示
showCover: {
// 是否开启封面显示 文章不设置cover封面会显示异常,可以设置下方默认封面
enable: true,
// 封面布局方式: left | right | both
coverLayout: 'both',
// 默认封面(随机展示)
defaultCover: [
'/images/cover-remote-sensing.png',
'/images/cover-lobster.png',
'/images/cover-remote-sensing.png'
]
}
},
// 页脚信息
footer: {
// 社交链接(请确保为偶数个)
social: [
{
icon: "github",
link: "https://github.com/RSEGordon",
},
{
icon: "bilibili",
link: "https://space.bilibili.com/339232775",
},
{
icon: "qq",
link: "https://qm.qq.com/q/N31GS4FeeI",
},
{
icon: "image-copy",
link: "https://500px.com.cn/RSEGordon",
},
],
// sitemap
sitemap: [
{
text: "博客",
items: [
{ text: "近期文章", link: "/" },
{ text: "全部分类", link: "/pages/categories" },
{ text: "全部标签", link: "/pages/tags" },
{ text: "文章归档", link: "/pages/archives", newTab: true },
],
},
{
text: "专栏",
items: [
{ text: "我的项目", link: "/pages/project" },
{ text: "全部标签", link: "/pages/tags" },
{ text: "全部分类", link: "/pages/categories" },
],
},
{
text: "页面",
items: [
{ text: "关于本站", link: "/pages/about" },
{ text: "隐私政策", link: "/pages/privacy" },
{ text: "版权协议", link: "/pages/cc" },
],
},
],
},
// 评论
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: "这里有<strong>海洋遥感</strong>的学习笔记、<strong>OpenClaw部署经验</strong>,也有<strong>摄影</strong>和生活中的碎碎念。希望我们可以一起进步,共同成长。",
},
// 目录
toc: {
enable: true,
},
// 标签
tags: {
enable: true,
},
// 倒计时
countDown: {
enable: true,
// 倒计时日期
data: {
name: "春节",
date: "2027-02-06",
},
},
// 站点数据
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: true,
// 微信二维码
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": "",
},
};