-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
213 lines (212 loc) · 5.19 KB
/
astro.config.mjs
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
import { defineConfig } from 'astro/config'
import starlight from '@astrojs/starlight'
import svelte from '@astrojs/svelte'
import tailwind from '@astrojs/tailwind'
import starlightLinksValidator from 'starlight-links-validator'
// https://astro.build/config
export default defineConfig({
server: {
port: 6969,
host: true,
},
site: 'https://www.niceshare.site/',
integrations: [
svelte(),
starlight({
plugins: [starlightLinksValidator()],
title: '逍遥自在轩',
social: {
github: 'https://github.com/nicejade/homepage',
'x.com': 'https://x.com/MarshalXuan',
mastodon: 'https://mastodon.social/@nicejade',
},
components: {
// Override the default `MarkdownContent` component.
MarkdownContent: './src/components/MarkdownContent.astro',
LinkCard: './src/components/LinkCard.svelte',
},
logo: {
src: './src/assets/images/logo.svg',
},
lastUpdated: false,
pagination: false,
defaultLocale: 'root',
locales: {
root: {
label: '简体中文',
lang: 'zh-CN',
},
},
customCss: [
'./src/assets/styles/tailwind.css',
// 你的自定义 CSS 文件的相对路径
'./src/assets/styles/custom.css',
],
head: [
{
tag: 'meta',
attrs: {
name: 'robots',
content: 'index, follow',
},
},
{
tag: 'meta',
attrs: {
name: 'keywords',
content: '导航网站,逍遥自在轩,工具集合,软件推荐,生活服务,工作效率,人工智能,技能学习,文档构建,休闲娱乐,云上服务,在线服务,编码开发,前端开发,后台开发',
},
},
{
tag: 'link',
attrs: {
rel: 'apple-touch-icon',
sizes: '180x180',
href: '/apple-touch-icon.png',
},
},
{
tag: 'link',
attrs: {
rel: 'icon',
sizes: '32x32',
href: '/favicon-32x32.png',
},
},
{
tag: 'link',
attrs: {
rel: 'icon',
sizes: '16x16',
href: '/favicon-16x16.png',
},
},
{
tag: 'link',
attrs: {
manifest: '/site.webmanifest',
re: 'manifest',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:card',
content: 'summary_large_image',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:image',
content: 'https://lovejade.oss-cn-shenzhen.aliyuncs.com/逍遥自在轩.png',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:title',
content: '逍遥自在轩 | 个人主页',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:description',
content: '逍遥自在轩,采用 Astro, Starlight, Svelte, Markdown, MDX,TailwindCSS 所构建的个人主页,它快速、易用、易于访问、高度可定制;用于汇集生活和工作中频繁使用的工具、软件和服务。',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:card',
content: 'summary_large_image',
},
},
{
tag: 'meta',
attrs: {
name: 'twitter:image',
content: 'https://lovejade.oss-cn-shenzhen.aliyuncs.com/逍遥自在轩.png',
},
},
{
tag: 'meta',
attrs: {
name: 'og:type',
content: 'website',
},
},
{
tag: 'meta',
attrs: {
name: 'og:title',
content: '逍遥自在轩 | 个人主页',
},
},
{
tag: 'meta',
attrs: {
name: 'og:description',
content: '逍遥自在轩,采用 Astro, Starlight, Svelte, Markdown, MDX,TailwindCSS 所构建的个人主页,它快速、易用、易于访问、高度可定制;用于汇集生活和工作中频繁使用的工具、软件和服务。',
},
},
{
tag: 'meta',
attrs: {
name: 'og:image',
content: 'https://lovejade.oss-cn-shenzhen.aliyuncs.com/逍遥自在轩.png',
},
},
{
tag: 'meta',
attrs: {
name: 'theme-color',
content: '#ffffff',
},
},
{
tag: 'meta',
attrs: {
name: 'google-adsense-account',
content: 'ca-pub-8586652723015758',
},
},
{
tag: 'script',
attrs: {
src: 'https://www.googletagmanager.com/gtag/js?id=G-M6N39DH483',
'id': 'G-M6N39DH483',
defer: true,
},
},
{
tag: 'script',
content: "window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'G-M6N39DH483');"
},
{
tag: 'script',
attrs: {
src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8586652723015758',
defer: true,
},
},
{
tag: 'script',
attrs: {
type: 'application/ld+json',
},
content: JSON.stringify({
"@context": "https://schema.org",
"@type": "WebSite",
"name": "逍遥自在轩",
"url": "https://www.niceshare.site/",
"description": "逍遥自在轩,采用 Astro, Starlight, Svelte, Markdown, MDX,TailwindCSS 所构建的个人主页,它快速、易用、易于访问、高度可定制;用于汇集生活和工作中频繁使用的工具、软件和服务。",
"inLanguage": "zh-CN"
}),
},
],
}),
tailwind(),
],
})