Skip to content

Commit 94da65c

Browse files
Update web app manifest and favicon images
- Modified site.webmanifest to change the name and short_name to "MyWebSite" and "MySite" respectively. - Updated icon sources to point to new favicon images. - Set theme_color to white and display mode to standalone. - Added purpose attribute for maskable icons. - Replaced existing favicon images with new versions for 192x192 and 512x512 sizes. Signed-off-by: wangsimiao1 <wangsimiao1@xiaomi.com>
1 parent 7d2d1d5 commit 94da65c

7 files changed

Lines changed: 14 additions & 21 deletions

File tree

390 Bytes
Loading
307 Bytes
Loading

assets/img/favicons/favicon.ico

0 Bytes
Binary file not shown.

assets/img/favicons/favicon.svg

100755100644
Lines changed: 1 addition & 3 deletions
Loading
Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
1-
---
2-
layout: compress
3-
---
4-
5-
{% assign favicon_path = "/assets/img/favicons" | relative_url %}
6-
71
{
8-
"name": "{{ site.title }}",
9-
"short_name": "{{ site.title }}",
10-
"description": "{{ site.description }}",
2+
"name": "MyWebSite",
3+
"short_name": "MySite",
114
"icons": [
125
{
13-
"src": "{{ favicon_path }}/android-chrome-192x192.png",
6+
"src": "/web-app-manifest-192x192.png",
147
"sizes": "192x192",
15-
"type": "image/png"
8+
"type": "image/png",
9+
"purpose": "maskable"
1610
},
1711
{
18-
"src": "{{ favicon_path }}/android-chrome-512x512.png",
12+
"src": "/web-app-manifest-512x512.png",
1913
"sizes": "512x512",
20-
"type": "image/png"
21-
}],
22-
"start_url": "{{ '/index.html' | relative_url }}",
23-
"theme_color": "#2a1e6b",
14+
"type": "image/png",
15+
"purpose": "maskable"
16+
}
17+
],
18+
"theme_color": "#ffffff",
2419
"background_color": "#ffffff",
25-
"display": "fullscreen"
26-
}
20+
"display": "standalone"
21+
}
-128 Bytes
Loading
-2.92 KB
Loading

0 commit comments

Comments
 (0)