mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 18:30:30 -04:00
also made even more config.toml parameters optional, will help when finally releasing theme
18 lines
835 B
HTML
18 lines
835 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">
|
|
|
|
{{- 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 " " }}">
|
|
|
|
<link rel="manifest" href="{{ "site.webmanifest" | absURL }}">
|