Skip to content

Commit e834a06

Browse files
committed
Add favicons and web manifest for PWA support
Added multiple favicon formats, apple-touch icon, and a web manifest to the public directory. Updated astro.config.ts to include relevant <link> tags for browser and PWA support. Improved favicon.svg for better compatibility.
1 parent 62ad6f9 commit e834a06

File tree

8 files changed

+49
-5
lines changed

8 files changed

+49
-5
lines changed

astro.config.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,27 @@ export default defineConfig({
8383
},
8484
],
8585
head: [
86+
// Favicons for Google Search and browsers
87+
{
88+
tag: 'link',
89+
attrs: { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
90+
},
91+
{
92+
tag: 'link',
93+
attrs: { rel: 'icon', type: 'image/png', sizes: '96x96', href: '/favicon-96x96.png' },
94+
},
95+
{
96+
tag: 'link',
97+
attrs: { rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' },
98+
},
99+
{
100+
tag: 'link',
101+
attrs: { rel: 'apple-touch-icon', sizes: '180x180', href: '/apple-touch-icon.png' },
102+
},
103+
{
104+
tag: 'link',
105+
attrs: { rel: 'manifest', href: '/site.webmanifest' },
106+
},
86107
// Google Search Console verification
87108
{
88109
tag: 'meta',

public/apple-touch-icon.png

4.84 KB
Loading

public/favicon-96x96.png

1017 Bytes
Loading

public/favicon.ico

14.7 KB
Binary file not shown.

public/favicon.svg

Lines changed: 7 additions & 5 deletions
Loading

public/site.webmanifest

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "Sprites",
3+
"short_name": "Sprites",
4+
"icons": [
5+
{
6+
"src": "/web-app-manifest-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png",
9+
"purpose": "maskable"
10+
},
11+
{
12+
"src": "/web-app-manifest-512x512.png",
13+
"sizes": "512x512",
14+
"type": "image/png",
15+
"purpose": "maskable"
16+
}
17+
],
18+
"theme_color": "#ffffff",
19+
"background_color": "#100017",
20+
"display": "standalone"
21+
}
4.57 KB
Loading
7.33 KB
Loading

0 commit comments

Comments
 (0)