mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 06:58:28 -04:00
17 lines
849 B
HTML
17 lines
849 B
HTML
{{- $appleIcon := resources.Get "img/apple-touch-icon.png" }}
|
|
<link rel="apple-touch-icon" href="{{ $appleIcon.Permalink }}" sizes="{{ $appleIcon.Width }}x{{ $appleIcon.Height }}">
|
|
|
|
{{- $safariIcon := resources.Get "img/safari-pinned-tab.svg" }}
|
|
<link rel="mask-icon" href="{{ $safariIcon.Permalink }}" color="#009cdf">
|
|
|
|
{{/* TODO: automate shrinking to given sizes based on one super big favicon */}}
|
|
{{- range (split .pngSizes " ") }}
|
|
{{- $faviconPng := resources.Get (printf "img/favicon-%v.png" .) }}
|
|
<link rel="icon" href="{{ $faviconPng.Permalink }}" sizes="{{ . }}x{{ . }}">
|
|
{{- end }}
|
|
|
|
{{- $s := slice }}
|
|
{{- range (split .icoSizes " ") }}{{ $s = $s | append (printf "%vx%v" . .) }}{{ end }}
|
|
{{- $faviconIco := resources.Get "img/favicon.ico" }}
|
|
<link rel="shortcut icon" href="{{ $faviconIco.Permalink }}" sizes="{{ delimit $s " " }}">
|