Skip to content

Commit

Permalink
fix: safari favicon (#2574)
Browse files Browse the repository at this point in the history
  • Loading branch information
cor authored Jul 25, 2024
2 parents 9103d7e + 20e7684 commit d564fff
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 8 deletions.
3 changes: 3 additions & 0 deletions site/public/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions site/public/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions site/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions site/public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions site/public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/public/favicon.ico
Binary file not shown.
5 changes: 3 additions & 2 deletions site/public/manifest.webmanifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"icons": [
{ "src": "/icon-192.png", "type": "image/png", "sizes": "192x192" },
{
"src": "/icon-192.png", "type": "image/png", "sizes": "192x192" },
{ "src": "/icon-512.png", "type": "image/png", "sizes": "512x512" }
]
]
}
19 changes: 19 additions & 0 deletions site/public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "union.build",
"short_name": "union.build",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#A0ECFD",
"background_color": "#000000",
"display": "standalone"
}
33 changes: 29 additions & 4 deletions site/src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,43 @@ const openGraphImage = `${image}?fit=fill&f=center&fm=png&w=1200&h=630`
}}
extend={{
link: [
{
rel: "manifest",
href: "/manifest.webmanifest",
crossorigin: "use-credentials"
},
{
rel: "apple-touch-icon",
href: `${BASE_URL}/apple-touch-icon.png`,
},
{
rel: "alternate",
type: "application/rss+xml",
title: "Union",
href: `${Astro.site}rss.xml`
},
{ rel: "sitemap", href: "/sitemap-index.xml" },
{
rel: "icon",
href: `${BASE_URL}/favicon.svg`,
type: "image/svg+xml"
}
sizes: "16x16",
type: "image/png",
href: `${BASE_URL}/favicon-16x16.png`
},
{
rel: "icon",
sizes: "32x32",
type: "image/png",
href: `${BASE_URL}/favicon-32x32.png`
},
{
rel: "icon",
type: "image/svg+xml",
href: `${BASE_URL}/favicon.svg`
},
{
rel: "icon",
href: `${BASE_URL}/favicon.ico`
},
{ rel: "sitemap", href: "/sitemap-index.xml" }
],
meta: [
{ name: "robots", content: "index, follow" },
Expand Down

0 comments on commit d564fff

Please sign in to comment.