Repository navigation
Expand file tree
/
Copy pathconfig.ts
More file actions
206 lines (197 loc) · 4.64 KB
/
Copy pathconfig.ts
File metadata and controls
206 lines (197 loc) · 4.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
import type { Site, Ui, Features } from './types'
export const SITE: Site = {
website: 'https://www.wutongyu.site/',
base: '/',
title: 'Wutong Yu',
description: 'WutongRain 的技术文章、工具笔记与项目记录。',
socialImage: '/og/default.png',
socialImageAlt: '梧桐雨 · 技术文章与工具笔记',
author: 'Wutong Yu',
lang: 'zh-CN',
imageDomains: [],
}
/** 中文展示名(名片、版权卡等);SITE.author 仍作英文/结构化身份。 */
export const AUTHOR_DISPLAY_NAME = '梧桐雨'
/** 正文默认许可;版权卡等只读这里。 */
export const CONTENT_LICENSE = {
label: 'CC BY-NC-SA 4.0',
href: 'https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh-hans',
} as const
export const GISCUS = {
repo: 'wutongyuonce/YuBlog',
repoId: 'R_kgDOSSGEzw',
category: 'Announcements',
categoryId: 'DIC_kwDOSSGEz84DIfZ_',
}
export const AUTHOR_LINKS = [
{
label: 'GitHub',
href: 'https://github.com/wutongyuonce',
icon: 'i-uil-github-alt',
},
{
label: 'X',
href: 'https://x.com/Yu2002964143523',
icon: 'i-simple-icons-x',
},
{
label: 'Instagram',
href: 'https://www.instagram.com/wutongyu0730',
icon: 'i-simple-icons-instagram',
},
{
label: 'Bilibili',
href: 'https://space.bilibili.com/521627597',
icon: 'i-simple-icons-bilibili',
},
{
label: '小红书',
href: 'https://www.xiaohongshu.com/user/profile/64842572000000001f005e63',
icon: 'i-simple-icons-xiaohongshu',
},
{ label: '邮箱', href: 'mailto:18896680730@163.com', icon: 'i-ri-mail-line' },
]
export const MORE_LINKS = [
{
title: '关于',
description: '个人介绍与联系',
href: '/about/',
icon: 'i-ri-user-smile-line',
external: false,
},
{
title: '项目',
description: '开源与日常造物',
href: '/projects/',
icon: 'i-ri-code-box-line',
external: false,
},
{
title: '友链',
description: '推荐与双向友链',
href: '/friends/',
icon: 'i-ri-links-line',
external: false,
},
{
title: '简历',
description: '个人经历与项目实践',
href: '/resume/',
icon: 'i-ri-file-user-line',
external: false,
},
{
title: '相册',
description: '光影与日常',
href: 'https://photos.wutongyu.site/',
icon: 'i-ri-image-line',
external: true,
},
{
title: '访问统计',
description: '访客与浏览趋势',
href: 'https://cloud.umami.is/share/Xna7YqwEWNnoAv2x',
icon: 'i-ri-bar-chart-line',
external: true,
},
]
export const UI: Ui = {
internalNavs: [
{
path: '/blogs/',
title: '文稿',
displayMode: 'alwaysText',
text: '文稿',
},
{
path: '/tags',
title: '标签',
displayMode: 'alwaysText',
text: '标签',
},
{
path: '/archives',
title: '归档',
displayMode: 'alwaysText',
text: '归档',
},
{
path: '/calendar/',
title: '日历',
displayMode: 'alwaysText',
text: '日历',
},
{
path: '/trips/',
title: '旅行',
displayMode: 'alwaysText',
text: '旅行',
},
{
path: '/interests/',
title: '拾趣',
displayMode: 'alwaysText',
text: '拾趣',
},
{
path: '/friends',
title: '更多',
displayMode: 'alwaysText',
text: '更多',
},
],
socialLinks: [
{
link: 'https://github.com/wutongyuonce/YuBlog',
title: 'GitHub',
displayMode: 'alwaysIcon',
icon: 'i-uil-github-alt',
},
],
navBarLayout: {
left: ['internalNavs'],
right: ['socialLinks', 'searchButton', 'accentButton', 'themeButton'],
},
groupView: {
showGroupItemColorOnHover: true,
},
externalLink: {
newTab: false,
cursorType: '',
showNewTabIcon: false,
},
}
/**
* Globally controls whether to enable special features:
* - Set to `false` or `[false, {...}]` to disable the feature.
* - Set to `[true, {...}]` to enable and configure the feature.
*/
export const FEATURES: Features = {
slideEnterAnim: [true, { enterStep: 60 }],
toc: [
true,
{
minHeadingLevel: 1,
maxHeadingLevel: 4,
displayPosition: 'right',
},
],
search: [
true,
{
includes: ['blogs'],
filter: false,
navHighlight: true,
batchLoadSize: [true, 5],
maxItemsPerPage: [true, 3],
},
],
oneko: [true, { skin: 'classic' }],
}
/** Dropdown icons also feed UnoCSS's dynamic-class safelist. */
export const INTEREST_ICONS: Record<string, string> = {
gear: 'i-ri-computer-line',
media: 'i-ri-film-line',
kpop: 'i-ri-music-2-line',
playlists: 'i-ri-play-list-line',
}