itsdrike.com/layouts/partials/favicon.html
2021-08-26 02:01:26 +02:00

9 lines
282 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 }}