X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=layouts%2Fpartials%2Ffuncs%2Ffavicon.html;h=ede85b076a5685b13a41a89e6dd4accbdb0d0a0a;hb=00bd3a19ecce5fbf041471128751311dc7c60b0a;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 }}