mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 14:38:30 -04:00
also migrated SASS to latest syntax (via dart-sass) and vastly simplified light/dark theme logic
13 lines
613 B
HTML
13 lines
613 B
HTML
{{- $s := slice -}}
|
|
{{- range (split .icoSizes " ") }}{{ $s = $s | append (printf "%vx%v" . .) }}{{ end -}}
|
|
{{- $faviconIco := index .manifest "images/favicon.ico" }}
|
|
<link rel="icon" href="{{ $faviconIco.src | absURL }}"> <!-- sizes="{{ delimit $s " " }}" -->
|
|
|
|
{{- $faviconSvg := index .manifest "images/favicon.svg" }}
|
|
<link rel="icon" href="{{ $faviconSvg.src | absURL }}" type="image/svg+xml">
|
|
|
|
{{- $appleIcon := index .manifest "images/apple-touch-icon.png" }}
|
|
<link rel="apple-touch-icon" href="{{ $appleIcon.src | absURL }}" sizes="180x180">
|
|
|
|
<link rel="manifest" href="{{ "site.webmanifest" | absURL }}">
|