chore: Document and improve favicons definition based on best practices (#2013)
@@ -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>
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 254 KiB |
|
Before Width: | Height: | Size: 322 KiB After Width: | Height: | Size: 190 KiB |
|
Before Width: | Height: | Size: 142 KiB |