mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-12-24 01:42:10 +00:00
Remove Apple mask icon
Even apple.com doesn't use it anymore lmao
This commit is contained in:
parent
f8113605c2
commit
e713a0e02a
3 changed files with 8 additions and 10 deletions
|
@ -2,7 +2,7 @@
|
|||
{{- $512png := resources.Get "/favicon512.png" | resources.Fingerprint "md5" }}
|
||||
{{- $1024svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }}
|
||||
{{- $maskablesvg := resources.Get "/maskable_android.svg" | resources.Fingerprint "md5" -}}
|
||||
{{- $monochromesvg := resources.Get "/mask_apple.svg" | resources.Fingerprint "md5" -}}
|
||||
{{- $monochromesvg := resources.Get "/monochrome.svg" | resources.Fingerprint "md5" -}}
|
||||
{
|
||||
"name": "Seirdy's Home",
|
||||
"short_name": "Seirdy",
|
||||
|
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -7,12 +7,10 @@
|
|||
{{ printf `<link rel="icon" sizes="192x192" href="%s" type="image/png">` $icon_192.RelPermalink | safeHTML }}
|
||||
{{ $favicon := resources.Get "/favicon.png" | resources.Fingerprint "md5" -}}
|
||||
{{ printf `<link rel="icon" sizes="32x32" href="%s" type="image/png">` $favicon.RelPermalink | safeHTML -}}
|
||||
<!-- apple-touch-icon and mask-icon used to be apple-specific, but
|
||||
now they're pseudo-standards relied upon by other vendors too:
|
||||
<!-- apple-touch-icon used to be apple-specific, but now it's
|
||||
a pseudo-standard relied upon by other vendors too:
|
||||
https://html.spec.whatwg.org/multipage/semantics.html#attr-link-sizes -->
|
||||
{{ printf `<link rel="apple-touch-icon" href="%s">` $icon_192.RelPermalink | safeHTML }}
|
||||
{{ $mask_icon := resources.Get "/mask_apple.svg" | resources.Fingerprint "md5" -}}
|
||||
{{ printf `<link rel="mask-icon" href="%s" color="black">` $mask_icon.RelPermalink | safeHTML }}
|
||||
{{ printf `<link rel="apple-touch-icon" href="%s">` $icon_192.RelPermalink | safeHTML -}}
|
||||
<!-- webmanifest defines even more icons. This is getting ridiculous -->
|
||||
{{ $webmanifest := resources.Get "/manifest.webmanifest" | resources.ExecuteAsTemplate "manifest.webmanifest" . | resources.Minify | resources.Fingerprint "md5" -}}
|
||||
{{ printf `<link rel="manifest" href="%s">` $webmanifest.RelPermalink | safeHTML }}
|
||||
|
@ -24,7 +22,7 @@
|
|||
<link rel="canonical" href="https://seirdy.one{{ .RelPermalink }}">
|
||||
{{ end -}}
|
||||
<link rel="pgpkey" type="application/pgp-keys" href="{{ .Site.BaseURL }}publickey.asc">
|
||||
{{ $resources := slice -}}
|
||||
{{- $resources := slice -}}
|
||||
{{ $resources = $resources | append (resources.Get "/css/main.css") -}}
|
||||
{{ $dark := .Site.Params.dark | default "auto" -}}
|
||||
{{ if not (eq $dark "off") -}}
|
||||
|
@ -36,10 +34,10 @@
|
|||
palette that way. -->
|
||||
<meta name="color-scheme" content="light dark">
|
||||
{{ $css := $resources | resources.Concat "css/style.css" | minify | resources.Fingerprint "sha384" -}}
|
||||
{{ printf `<link rel="stylesheet" href="%s" integrity="%s">` $css.RelPermalink $css.Data.Integrity | safeHTML }}
|
||||
{{ printf `<link rel="stylesheet" href="%s" integrity="%s">` $css.RelPermalink $css.Data.Integrity | safeHTML -}}
|
||||
<!-- only load syntax-highlighting CSS if this page needs it -->
|
||||
{{ if .Params.highlight -}}
|
||||
{{ $css_syntax := resources.Get "/css/syntax.css" | minify | resources.Fingerprint "sha384" }}
|
||||
{{ $css_syntax := resources.Get "/css/syntax.css" | minify | resources.Fingerprint "sha384" -}}
|
||||
{{- printf `<link rel="stylesheet" href="%s" integrity="%s">` $css_syntax.RelPermalink $css_syntax.Data.Integrity | safeHTML }}
|
||||
{{- end -}}
|
||||
{{- if eq .RelPermalink "/" -}}
|
||||
|
@ -55,7 +53,7 @@
|
|||
<meta property="og:type" content="article">
|
||||
{{- else }}
|
||||
<meta property="og:type" content="website">
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
<!-- ANOTHER meta image?! When will it end? -->
|
||||
{{ $og_image := resources.Get "/open_graph.png" | resources.Fingerprint "md5" -}}
|
||||
{{ printf `<meta property="og:image" content="%s">` $og_image.Permalink | safeHTML }}
|
||||
|
|
Loading…
Reference in a new issue