-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalaxy.config.ts
118 lines (104 loc) · 2.32 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
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
// Valaxy 配置文件
import { defineValaxyConfig } from 'valaxy';
import { addonComponents } from 'valaxy-addon-components';
import { addonWaline } from 'valaxy-addon-waline';
import type { UserThemeConfig } from 'valaxy-theme-yun';
// add icons what you will need
const safelist = ['i-ri-home-line'];
/**
* User Config
*/
export default defineValaxyConfig<UserThemeConfig>({
// site config see site.config.ts
theme: 'yun',
modules: {
rss: {
enable: true,
},
},
themeConfig: {
banner: {
enable: true,
title: '翎钰的小窝',
cloud: {
enable: true,
},
},
bg_image: {
enable: true,
// 可以使用本地文件,放到public后在url直接填写文件名
url: 'https://pic.imgdb.cn/item/5fd234093ffa7d37b3b4e5e1.jpg',
dark: 'https://pic.imgdb.cn/item/5fd234093ffa7d37b3b4e5e1.jpg',
// blur: 30px , 设置背景模糊程度
opacity: 0.6,
},
fireworks: {
enable: true,
colors: ['#66A7DD', '#3E83E1', '#214EC2'],
},
// sidebar: {
// //src: "/js/sidebar.js",
// bg_image: "https://pic.imgdb.cn/item/5fd2473e3ffa7d37b3cb7445.jpg",
// dark_bg_image: "https://pic.imgdb.cn/item/5fd23f433ffa7d37b3c2156b.png",
// bg_position: "bottom 0rem center",
// tagcloud: {
// enable: true,
// amount: 20,
// },
// },
notice: {
enable: true,
content: '欢迎你来到我的小站 >_<',
},
pages: [
{
name: '我的小伙伴们',
url: '/links/',
icon: 'i-ri-genderless-line',
color: 'dodgerblue',
},
{
name: '我的纸片人老婆们',
url: '/girls/',
icon: 'i-ri-women-line',
color: 'hotpink',
},
],
footer: {
since: 2020,
beian: {
enable: false,
icp: '',
},
},
},
unocss: { safelist },
addons: [
addonWaline({
serverURL: 'https://waline.lkyu.cf',
comment: true,
emoji: [
'https://unpkg.com/@waline/[email protected]/bilibili',
'https://unpkg.com/@waline/[email protected]/soul-emoji',
'https://unpkg.com/@waline/[email protected]/weibo',
'https://unpkg.com/@waline/[email protected]/qq',
],
search: true,
reaction: false,
lang: 'zh-CN',
}),
addonComponents(),
],
markdown: {
lineNumbers: true,
/**
* KaTeX options
* @see https://katex.org/docs/options.html
*/
katex: {
strict: false,
displayMode: true,
colorIsTextColor: true,
},
},
});