Skip to content

Commit ee90324

Browse files
committed
Update zh config with favicon and theme changes
Added a favicon link to the head section and updated themeConfig to use siteTitle and a new logo path. Also replaced the logo object with a string path and added siteTitle for improved site branding.
1 parent 3cc47f8 commit ee90324

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

docs/.vitepress/zh.ts

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,24 @@ export const zh = defineConfig({
55
lang: 'zh-CN',
66
title: "SpectrumLab",
77
description: "A pioneering unified platform designed to systematize and accelerate deep learning research in spectroscopy.",
8+
9+
head: [
10+
['link', { rel: 'icon', type: 'image/svg+xml', href: './assets/logo.svg' }]
11+
// ['link', { rel: 'preconnect', href: 'https://fonts.googleapis.com' }],
12+
// [
13+
// 'link',
14+
// { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }
15+
// ],
16+
// [
17+
// 'link',
18+
// { href: 'https://fonts.googleapis.com/css2?family=Roboto&display=swap', rel: 'stylesheet' }
19+
// ]
20+
],
21+
822
themeConfig: {
9-
logo: {
10-
src: './assets/logo.svg',
11-
},
23+
siteTitle: "SpectrumLab",
24+
25+
logo: '/assets/logo.svg',
1226

1327
nav: [
1428
{ text: '教程', link: '/zh/tutorial' },

0 commit comments

Comments
 (0)