VitePress: Update logo and favicon (#824)

- Replace old favicon with theme-adaptive (dark/light) versions
- Add website logo
- Standardize homepage image filenames
This commit is contained in:
Meow
2026-03-01 21:57:38 +08:00
committed by GitHub
parent 02d5344753
commit ec7e162dd1
8 changed files with 40 additions and 4 deletions
+19 -1
View File
@@ -15,7 +15,24 @@ export default defineConfig({
title: "Project X",
description: "Xray-core",
head: [["link", { rel: "icon", href: "/logo.png" }]],
head: [
[
"link",
{
rel: "icon",
href: "/logo-light.svg",
media: "(prefers-color-scheme: light)"
}
],
[
"link",
{
rel: "icon",
href: "/logo-dark.svg",
media: "(prefers-color-scheme: dark)"
}
]
],
lastUpdated: true,
@@ -54,6 +71,7 @@ export default defineConfig({
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
logo: { light: "/logo-light.svg", dark: "/logo-dark.svg" },
nav: nav,
search: {
+1 -1
View File
@@ -6,7 +6,7 @@ hero:
text: Xray-core
tagline: Fear not the clouds that obscure the view, golden eyes like a torch brighten the sky
image:
src: /LogoX2.png
src: /img-project-x.png
alt: Xray, Penetrates Everything
actions:
- theme: brand
+1 -1
View File
@@ -7,7 +7,7 @@ hero:
text: Xray-core
tagline: 不畏浮云遮望眼 · 金睛如炬耀苍穹
image:
src: /LogoX2.png
src: /img-project-x.png
alt: Xray, Penetrates Everything
actions:
- theme: brand

Before

Width:  |  Height:  |  Size: 257 KiB

After

Width:  |  Height:  |  Size: 257 KiB

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 90 KiB

+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" id="logo"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" style="enable-background:new 0 0 1000 1000;" xml:space="preserve">
<polygon fill="#dfdfd6" points="530,530 900,530 650,650 530,1000 "/>
<polygon fill="#dfdfd6" points="470,530 470,900 350,650 0,530 "/>
<polygon fill="#dfdfd6" points="530,470 530,100 650,350 1000,470 "/>
<polygon fill="#dfdfd6" points="470,470 100,470 350,350 470,0 "/>
</svg>

After

Width:  |  Height:  |  Size: 542 B

+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" id="logo"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1000 1000" style="enable-background:new 0 0 1000 1000;" xml:space="preserve">
<polygon points="530,530 900,530 650,650 530,1000 "/>
<polygon points="470,530 470,900 350,650 0,530 "/>
<polygon points="530,470 530,100 650,350 1000,470 "/>
<polygon points="470,470 100,470 350,350 470,0 "/>
</svg>

After

Width:  |  Height:  |  Size: 482 B

+1 -1
View File
@@ -6,7 +6,7 @@ hero:
text: Xray-core
tagline: Не бойтесь облаков, застилающих вид – золотые глаза, словно факел, озаряют небо.
image:
src: /LogoX2.png
src: /img-project-x.png
alt: Xray, Penetrates Everything
actions:
- theme: brand