-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalaxy.config.ts
94 lines (82 loc) · 1.63 KB
/
valaxy.config.ts
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
import { defineValaxyConfig } from 'valaxy'
import type { UserThemeConfig } from 'valaxy-theme-yun'
import { addonComponents } from 'valaxy-addon-components'
import { VitePWA } from 'vite-plugin-pwa'
// add icons what you will need
const safelist = [
'i-ri-home-line',
'i-ri-netease-cloud-music-line',
'i-ri-zhihu-line',
'i-ri-bilibili-line',
'i-ri-mail-line',
]
/**
* User Config
*/
export default defineValaxyConfig<UserThemeConfig>({
// site config see site.config.ts
vite:{
base: "/re-blog/",
},
theme: 'yun',
themeConfig: {
banner: {
enable: true,
title: '夤夜的世界旅行手记',
cloud: {
enable: true,
},
},
pages: [
{
name: '我的小伙伴们',
url: '/links/',
icon: 'i-ri-genderless-line',
color: 'dodgerblue',
},
],
/**
* @en - Fireworks when click
* @zh - 点击时的烟花效果
*/
fireworks: {
enable: true,
/**
* @en - Fireworks colors
* @zh - 烟花颜色
* @default ['#66A7DD', '#3E83E1', '#214EC2']
*/
colors: ['#66CCFF', '#9999FF', '#FFFF00'],
},
/**
* @en Background image
* @zh 背景图
*/
bg_image: {
/**
* @en Enable background image
*/
enable: true,
/**
* @en Image url
*/
url: "https://s11.ax1x.com/2022/07/21/jqsay8.png",
/**
* @en Image url when dark mode
*/
//dark?: string
/**
* @en Image opacity不透明度
*/
opacity: 0.7,
},
footer: {
since: 2024,
beian: {
enable: false,
icp: 'none',
},
},
},
unocss: { safelist },
})