itsdrike.com/layouts/partials/favicon.html

9 lines
278 B
HTML
Raw Normal View History

2021-08-26 00:01:26 +00:00
{{ $image := "/img/favicon.png" }}
{{ $sizes := slice 16 32 64 100 200 }}
{{ range $sizes }}
2022-05-11 12:10:49 +00:00
{{ $sizes := printf "%dx%d" . . }}
<link rel="icon" type="image/png" sizes="{{ $sizes }}"
2021-08-26 00:01:26 +00:00
href='{{ ((resources.Get $image | fingerprint).Resize $sizes).RelPermalink }}'>
{{ end }}