🚀 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
export default defineConfig({
base: "/voidraft/",
base: "./",
title: "voidraft",
description: "An elegant text snippet recording tool designed for developers.",
srcDir: 'src',
@@ -12,12 +12,12 @@ export default defineConfig({
srcExclude: [],
ignoreDeadLinks: false,
head: [
["link", {rel: "icon", type: "image/png", href: "/static/icon/favicon-96x96.png", sizes: "96x96"}],
["link", {rel: "icon", type: "image/svg+xml", href: "/static/icon/favicon.svg"}],
["link", {rel: "shortcut icon", href: "/static/icon/favicon.ico"}],
["link", {rel: "apple-touch-icon", sizes: "180x180", href: "/static/icon/apple-touch-icon.png"}],
["link", {rel: "icon", type: "image/png", href: "/icon/favicon-96x96.png", sizes: "96x96"}],
["link", {rel: "icon", type: "image/svg+xml", href: "/icon/favicon.svg"}],
["link", {rel: "shortcut icon", href: "/icon/favicon.ico"}],
["link", {rel: "apple-touch-icon", sizes: "180x180", href: "/icon/apple-touch-icon.png"}],
["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'}]
],
@@ -28,7 +28,7 @@ export default defineConfig({
lang: 'en-US',
description: 'An elegant text snippet recording tool designed for developers.',
themeConfig: {
logo: '/static/icon/logo.png',
logo: '/icon/logo.png',
siteTitle: 'voidraft',
nav: [
{text: 'Home', link: '/'},
@@ -80,7 +80,7 @@ export default defineConfig({
link: '/zh/',
description: '一个为开发者设计的优雅文本片段记录工具',
themeConfig: {
logo: '/static/icon/logo.png',
logo: '/icon/logo.png',
siteTitle: 'voidraft',
nav: [
{text: '首页', link: '/zh/'},

View File

@@ -6,7 +6,7 @@ hero:
text: "An elegant text snippet recording tool"
tagline: Designed for developers, built with modern technology
image:
src: /static/img/hero.png
src: /img/hero.png
alt: "voidraft"
actions:
- 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: "优雅的文本片段记录工具"
tagline: 为开发者设计,用现代技术打造
image:
src: /static/img/hero.png
src: /img/hero.png
alt: "voidraft"
actions:
- theme: brand