chore: Document and improve favicons definition based on best practices (#2013)

This commit is contained in:
Jorge Marin
2026-06-16 07:41:04 +02:00
committed by GitHub
parent 970000f440
commit 3dfeab99d9
9 changed files with 31 additions and 2 deletions
+4 -2
View File
@@ -7,7 +7,7 @@
name="viewport"
/>
<base href="{{.HostPrefix}}/" />
<link href=".client/logo.png" rel="apple-touch-icon" />
<link href=".client/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180" />
<meta
content="#e1e1e1"
media="(prefers-color-scheme: light)"
@@ -31,7 +31,9 @@
href=".client/manifest.json"
rel="manifest"
/>
<link href=".client/favicon.png" rel="icon" type="image/x-icon" />
<link rel="icon" type="image/png" href=".client/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href=".client/favicon.svg" />
<link rel="shortcut icon" href=".client/favicon.ico" />
{{.AdditionalHeadHTML}}
</head>
+26
View File
@@ -0,0 +1,26 @@
# Usage
## Icons
- **apple-touch-icon.png**
Used for `rel="apple-touch-icon"`
- **favicon-96x96.png**
PNG favicon (optimized for retina displays)
- **favicon.ico**
Standard shortcut favicon
- **favicon.svg**
Scalable SVG favicon
## Logos
- **logo-dock.png**
Logo used for PWA docking
- **logo-large.png**
Original high-resolution logo (reference only)
- **logo.png**
Used for `property="og:image"` (social preview image)
Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 254 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 322 KiB

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB