🚀 Fixed resource path issues
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
import {defineConfig} from 'vitepress'
|
import {defineConfig} from 'vitepress'
|
||||||
|
const base = '/voidraft/'
|
||||||
// https://vitepress.dev/reference/site-config
|
// https://vitepress.dev/reference/site-config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
base: "./",
|
base: 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: "/icon/favicon-96x96.png", sizes: "96x96"}],
|
["link", {rel: "icon", type: "image/png", href: `${base}/icon/favicon-96x96.png`, sizes: "96x96"}],
|
||||||
["link", {rel: "icon", type: "image/svg+xml", href: "/icon/favicon.svg"}],
|
["link", {rel: "icon", type: "image/svg+xml", href: `${base}/icon/favicon.svg`}],
|
||||||
["link", {rel: "shortcut icon", href: "/icon/favicon.ico"}],
|
["link", {rel: "shortcut icon", href: `${base}/icon/favicon.ico`}],
|
||||||
["link", {rel: "apple-touch-icon", sizes: "180x180", href: "/icon/apple-touch-icon.png"}],
|
["link", {rel: "apple-touch-icon", sizes: "180x180", href: `${base}/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: "/icon/site.webmanifest"}],
|
["link", {rel: "manifest", href: `${base}/icon/site.webmanifest`}],
|
||||||
['meta', {name: 'viewport', content: 'width=device-width,initial-scale=1'}]
|
['meta', {name: 'viewport', content: 'width=device-width,initial-scale=1'}]
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|||||||
@@ -3,13 +3,13 @@
|
|||||||
"short_name": "voidraft",
|
"short_name": "voidraft",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "/static/img/web-app-manifest-192x192.png",
|
"src": "/img/web-app-manifest-192x192.png",
|
||||||
"sizes": "192x192",
|
"sizes": "192x192",
|
||||||
"type": "image/png",
|
"type": "image/png",
|
||||||
"purpose": "maskable"
|
"purpose": "maskable"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "/static/img/web-app-manifest-512x512.png",
|
"src": "/img/web-app-manifest-512x512.png",
|
||||||
"sizes": "512x512",
|
"sizes": "512x512",
|
||||||
"type": "image/png",
|
"type": "image/png",
|
||||||
"purpose": "maskable"
|
"purpose": "maskable"
|
||||||
|
|||||||
Reference in New Issue
Block a user