@@ -8,7 +8,7 @@ import HighlightedExt from './plugins/highlightedExt'
8
8
export default async ( ) => defineConfig ( {
9
9
lang : 'zh-CN' ,
10
10
title : '凹语言' ,
11
- description : '针对 WASM 平台设计的通用编程语言 ' ,
11
+ description : '因为简单, 所以自由 ' ,
12
12
appearance : true ,
13
13
14
14
locales : {
@@ -120,7 +120,24 @@ export default async () => defineConfig({
120
120
} ,
121
121
122
122
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
+
124
141
[ 'script' , { } , fs . readFileSync ( path . resolve ( __dirname , './inlined-scripts/redirectDocsPath.js' ) , 'utf-8' ) ] ,
125
142
[ 'script' , { } , fs . readFileSync ( path . resolve ( __dirname , './inlined-scripts/restorePreference.js' ) , 'utf-8' ) ] ,
126
143
] ,
0 commit comments