X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=layouts%2Fpartials%2Ffuncs%2Ffavicon.html;h=ede85b076a5685b13a41a89e6dd4accbdb0d0a0a;hb=748286b530a4b000cac6b88bbcebb258056a9e77;hp=19bc0c3ec8c18004e2c96f79ff4510f8606dfa5d;hpb=e28a215c266b18d0a3eb7156345f8cdbab3a883b;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 }}