@@ -8,7 +8,7 @@ import HighlightedExt from './plugins/highlightedExt'
88export default async ( ) => defineConfig ( {
99 lang : 'zh-CN' ,
1010 title : '凹语言' ,
11- description : '针对 WASM 平台设计的通用编程语言 ' ,
11+ description : '因为简单, 所以自由 ' ,
1212 appearance : true ,
1313
1414 locales : {
@@ -120,7 +120,24 @@ export default async () => defineConfig({
120120 } ,
121121
122122 head : [
123- [ 'link' , { rel : 'icon' , href : '/favicon.svg' } ] ,
123+ [ 'link' , { rel : 'icon' , href : '/favicon.ico' , type : 'image/x-ico' } ] ,
124+ [ 'link' , { rel : 'icon' , href : '/favicon.svg' , type : 'image/svg+xml' } ] ,
125+
126+ // Apple 设备图标
127+ [ 'link' , { rel : 'apple-touch-icon' , href : '/favicon.png' } ] ,
128+
129+ // chrome 设备
130+ [ 'link' , { rel : 'icon' , sizes : '192x192' , href : '/logo-192x192.png' , type : 'image/png' } ] ,
131+ [ 'link' , { rel : 'icon' , sizes : '512x512' , href : '/logo-512x512.png' , type : 'image/png' } ] ,
132+
133+ // Android 添加到主屏幕
134+ [ 'link' , { rel : 'manifest' , href : '/manifest.json' } ] ,
135+
136+ // Android/Windows 设备图标
137+ [ 'meta' , { name : 'theme-color' , content : '#ffffff' } ] ,
138+ [ 'meta' , { name : 'msapplication-TileImage' , content : '/logo-150x150.png' } ] ,
139+ [ 'meta' , { name : 'msapplication-TileColor' , content : '#ffffff' } ] ,
140+
124141 [ 'script' , { } , fs . readFileSync ( path . resolve ( __dirname , './inlined-scripts/redirectDocsPath.js' ) , 'utf-8' ) ] ,
125142 [ 'script' , { } , fs . readFileSync ( path . resolve ( __dirname , './inlined-scripts/restorePreference.js' ) , 'utf-8' ) ] ,
126143 ] ,
0 commit comments