Skip to content

Commit

Permalink
fix: 修复 site.webmanifest 404 错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Leetfs committed Oct 27, 2024
1 parent 6f73047 commit 7c956a3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const baseConfig = {
} satisfies Partial<SidebarOptions>

const sidebarOptions = [
// 首页
// 首页
{
...baseConfig,
scanStartPath: '/',
Expand All @@ -78,7 +78,7 @@ const sidebarOptions = [
scanStartPath: 'tips',
resolvePath: '/tips/',
},
// 生活琐事
// 生活琐事
{
...baseConfig,
scanStartPath: 'life',
Expand All @@ -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 根目录 */
Expand Down
19 changes: 19 additions & 0 deletions docs/public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 7c956a3

Please sign in to comment.