🚀 Fixed resource path issues

This commit is contained in:
2025-11-04 00:57:49 +08:00
parent 4dad0a86b3
commit 8571fc0f5c
12 changed files with 10 additions and 10 deletions

View File

@@ -2,7 +2,7 @@ import {defineConfig} from 'vitepress'
// https://vitepress.dev/reference/site-config // https://vitepress.dev/reference/site-config
export default defineConfig({ export default defineConfig({
base: "/voidraft/", base: "./",
title: "voidraft", title: "voidraft",
description: "An elegant text snippet recording tool designed for developers.", description: "An elegant text snippet recording tool designed for developers.",
srcDir: 'src', srcDir: 'src',
@@ -12,12 +12,12 @@ export default defineConfig({
srcExclude: [], srcExclude: [],
ignoreDeadLinks: false, ignoreDeadLinks: false,
head: [ head: [
["link", {rel: "icon", type: "image/png", href: "/static/icon/favicon-96x96.png", sizes: "96x96"}], ["link", {rel: "icon", type: "image/png", href: "/icon/favicon-96x96.png", sizes: "96x96"}],
["link", {rel: "icon", type: "image/svg+xml", href: "/static/icon/favicon.svg"}], ["link", {rel: "icon", type: "image/svg+xml", href: "/icon/favicon.svg"}],
["link", {rel: "shortcut icon", href: "/static/icon/favicon.ico"}], ["link", {rel: "shortcut icon", href: "/icon/favicon.ico"}],
["link", {rel: "apple-touch-icon", sizes: "180x180", href: "/static/icon/apple-touch-icon.png"}], ["link", {rel: "apple-touch-icon", sizes: "180x180", href: "/icon/apple-touch-icon.png"}],
["meta", {name: "apple-mobile-web-app-title", content: "voidraft"}], ["meta", {name: "apple-mobile-web-app-title", content: "voidraft"}],
["link", {rel: "manifest", href: "/static/icon/site.webmanifest"}], ["link", {rel: "manifest", href: "/icon/site.webmanifest"}],
['meta', {name: 'viewport', content: 'width=device-width,initial-scale=1'}] ['meta', {name: 'viewport', content: 'width=device-width,initial-scale=1'}]
], ],
@@ -28,7 +28,7 @@ export default defineConfig({
lang: 'en-US', lang: 'en-US',
description: 'An elegant text snippet recording tool designed for developers.', description: 'An elegant text snippet recording tool designed for developers.',
themeConfig: { themeConfig: {
logo: '/static/icon/logo.png', logo: '/icon/logo.png',
siteTitle: 'voidraft', siteTitle: 'voidraft',
nav: [ nav: [
{text: 'Home', link: '/'}, {text: 'Home', link: '/'},
@@ -80,7 +80,7 @@ export default defineConfig({
link: '/zh/', link: '/zh/',
description: '一个为开发者设计的优雅文本片段记录工具', description: '一个为开发者设计的优雅文本片段记录工具',
themeConfig: { themeConfig: {
logo: '/static/icon/logo.png', logo: '/icon/logo.png',
siteTitle: 'voidraft', siteTitle: 'voidraft',
nav: [ nav: [
{text: '首页', link: '/zh/'}, {text: '首页', link: '/zh/'},

View File

@@ -6,7 +6,7 @@ hero:
text: "An elegant text snippet recording tool" text: "An elegant text snippet recording tool"
tagline: Designed for developers, built with modern technology tagline: Designed for developers, built with modern technology
image: image:
src: /static/img/hero.png src: /img/hero.png
alt: "voidraft" alt: "voidraft"
actions: actions:
- theme: brand - theme: brand

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB

View File

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 101 KiB

After

Width:  |  Height:  |  Size: 101 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@@ -6,7 +6,7 @@ hero:
text: "优雅的文本片段记录工具" text: "优雅的文本片段记录工具"
tagline: 为开发者设计,用现代技术打造 tagline: 为开发者设计,用现代技术打造
image: image:
src: /static/img/hero.png src: /img/hero.png
alt: "voidraft" alt: "voidraft"
actions: actions:
- theme: brand - theme: brand