From 7c956a35df1d9a136a84b4de6fde47cc4c006c41 Mon Sep 17 00:00:00 2001 From: Lee Date: Sun, 27 Oct 2024 15:46:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20site.webmanifest=20?= =?UTF-8?q?404=20=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config.ts | 8 ++++---- docs/public/site.webmanifest | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 docs/public/site.webmanifest diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 3528b81..13a40bc 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -60,7 +60,7 @@ const baseConfig = { } satisfies Partial const sidebarOptions = [ - // 首页 + // 首页 { ...baseConfig, scanStartPath: '/', @@ -78,7 +78,7 @@ const sidebarOptions = [ scanStartPath: 'tips', resolvePath: '/tips/', }, - // 生活琐事 + // 生活琐事 { ...baseConfig, scanStartPath: 'life', @@ -89,9 +89,9 @@ const sidebarOptions = [ const themeConfig: ThemeContext = { siteTitle: "Lee's blog", siteDescription: "偶尔的废话和些许经验", - siteLogo: '/logo.png', + siteLogo: '/old.png', // SiteTitle值为false时,logo位置不显示标题。未定义SiteTitle时,显示标题。SiteTitle值为abcd时,显示abcd。 - // SiteTitle: false, + // SiteTitle: false, /** Repo */ githubRepoLink: 'https://github.com/Leetfs/blog', /** vitepress 根目录 */ diff --git a/docs/public/site.webmanifest b/docs/public/site.webmanifest new file mode 100644 index 0000000..9d2d407 --- /dev/null +++ b/docs/public/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "Lee's blog", + "short_name": "Lee's blog", + "icons": [ + { + "src": "/favicon-32x32.png", + "sizes": "32x32", + "type": "image/png" + }, + { + "src": "/favicon-32x32.png", + "sizes": "32x32", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +}