mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
Remove SRI for icons
Apparently SRI is only valid for rel attrs with the value "stylesheet", "preload", or "modulepreload".
This commit is contained in:
parent
337e34739f
commit
8af072a0be
1 changed files with 7 additions and 7 deletions
|
@ -4,16 +4,16 @@
|
|||
{{ with .Site.Params.description -}}
|
||||
<meta name="description" content="{{ . }}">
|
||||
{{ end }}
|
||||
{{- $icon_192 := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "sha384" -}}
|
||||
{{ printf `<link rel="icon" sizes="192x192" href="%s" type="image/png" integrity="%s">` $icon_192.RelPermalink $icon_192.Data.Integrity | safeHTML }}
|
||||
{{ $favicon := resources.Get "/favicon.png" | resources.Fingerprint "sha384" -}}
|
||||
{{ printf `<link rel="icon" sizes="32x32" href="%s" type="image/png" integrity="%s">` $favicon.RelPermalink $favicon.Data.Integrity | safeHTML -}}
|
||||
{{- $icon_192 := resources.Get "/apple-touch-icon.png" | resources.Fingerprint "md5" -}}
|
||||
{{ 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 appple-specific, but now
|
||||
they're pseudo-standards relied upon by other vendors too. See
|
||||
https://html.spec.whatwg.org/multipage/semantics.html#attr-link-sizes-->
|
||||
{{ printf `<link rel="apple-touch-icon" href="%s" integrity="%s">` $icon_192.RelPermalink $icon_192.Data.Integrity | safeHTML }}
|
||||
{{ $mask_icon := resources.Get "/mask.svg" | resources.Fingerprint "sha384" -}}
|
||||
{{ printf `<link rel="mask-icon" href="%s" integrity="%s" color="black">` $mask_icon.RelPermalink $mask_icon.Data.Integrity | safeHTML }}
|
||||
{{ printf `<link rel="apple-touch-icon" href="%s">` $icon_192.RelPermalink | safeHTML }}
|
||||
{{ $mask_icon := resources.Get "/mask.svg" | resources.Fingerprint "md5" -}}
|
||||
{{ printf `<link rel="mask-icon" href="%s" color="black">` $mask_icon.RelPermalink | safeHTML }}
|
||||
<link rel="manifest" href="{{ .Site.BaseURL }}manifest.webmanifest">
|
||||
<link rel="alternate" type="application/rss+xml" href="{{ .Site.BaseURL }}posts/index.xml" title="{{ $.Site.Title }}"/>
|
||||
{{ if eq .Site.BaseURL "https://envs.net/~seirdy/" -}}
|
||||
|
|
Loading…
Reference in a new issue