Skip to content

Commit 9c2466b

Browse files
committed
style: correct support for favicons
Using https://realfavicongenerator.net
1 parent ee5ce47 commit 9c2466b

File tree

9 files changed

+61
-2
lines changed

9 files changed

+61
-2
lines changed

astro.config.mjs

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,51 @@ export default defineConfig({
8282
},
8383
favicon: "/favicon.svg",
8484
head: [
85-
// Agregar un favicon ICO de respaldo para Safari.
85+
// Favicon and Meta Tags
8686
{
8787
tag: "link",
8888
attrs: {
8989
rel: "icon",
90+
type: "image/png",
91+
href: "/favicon-96x96.png",
92+
sizes: "96x96",
93+
},
94+
},
95+
{
96+
tag: "link",
97+
attrs: {
98+
rel: "icon",
99+
type: "image/svg+xml",
100+
href: "/favicon.svg",
101+
},
102+
},
103+
{
104+
tag: "link",
105+
attrs: {
106+
rel: "shortcut icon",
90107
href: "/favicon.ico",
91-
sizes: "32x32",
108+
},
109+
},
110+
{
111+
tag: "link",
112+
attrs: {
113+
rel: "apple-touch-icon",
114+
href: "/apple-touch-icon.png",
115+
sizes: "180x180",
116+
},
117+
},
118+
{
119+
tag: "meta",
120+
attrs: {
121+
name: "apple-mobile-web-app-title",
122+
content: "Pásame el Código",
123+
},
124+
},
125+
{
126+
tag: "link",
127+
attrs: {
128+
rel: "manifest",
129+
href: "/site.webmanifest",
92130
},
93131
},
94132
{

public/apple-touch-icon.png

9.67 KB
Loading

public/favicon-96x96.png

6.06 KB
Loading

public/favicon.ico

9.44 KB
Binary file not shown.

public/og.jpg

-4.95 KB
Loading

public/og2.png

-79.9 KB
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": "Pásame el Código",
3+
"short_name": "PC",
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": "#ffffff",
20+
"display": "standalone"
21+
}
10.9 KB
Loading
47 KB
Loading

0 commit comments

Comments
 (0)