X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=layouts%2Fpartials%2Ffuncs%2Ffavicon.html;fp=layouts%2Fpartials%2Ffuncs%2Ffavicon.html;h=ede85b076a5685b13a41a89e6dd4accbdb0d0a0a;hb=0605a97a4a8208350df3097fbb26aa240c51686f;hp=19bc0c3ec8c18004e2c96f79ff4510f8606dfa5d;hpb=c2a879c337eb073ffb711e52c9e3abb537c2ad01;p=theme-danix.xyz.git diff --git a/layouts/partials/funcs/favicon.html b/layouts/partials/funcs/favicon.html index 19bc0c3..ede85b0 100644 --- a/layouts/partials/funcs/favicon.html +++ b/layouts/partials/funcs/favicon.html @@ -1,7 +1,14 @@ - - - - + + + + - - +{{ range $i := .Site.Params.faviconSizes }} + {{ $favicon := resources.Get "img/icon.png" }} + {{ $image := $favicon.Resize (printf "%dx%d CatmullRom" $i $i) }} + +{{ end }} +{{ with resources.Get "img/icon.png" }} + {{ $image := .Resize "180x CatmullRom" }} + +{{ end }}