itsdrike.com/layouts/partials/favicon.html
2022-05-11 14:38:20 +02:00

9 lines
278 B
HTML

{{ $image := "/img/favicon.png" }}
{{ $sizes := slice 16 32 64 100 200 }}
{{ range $sizes }}
{{ $sizes := printf "%dx%d" . . }}
<link rel="icon" type="image/png" sizes="{{ $sizes }}"
href='{{ ((resources.Get $image | fingerprint).Resize $sizes).RelPermalink }}'>
{{ end }}