-<link rel="icon" sizes="192x192" href='{{ "/assets/img/icon.png" | absURL }}'>
-<link rel="apple-touch-icon" href='{{ "/assets/img/icon.png" | absURL }}'>
+{{ range $i := .Site.Params.faviconSizes }}
+ {{ $favicon := resources.Get "img/icon.png" }}
+ {{ $image := $favicon.Resize (printf "%dx%d CatmullRom" $i $i) }}
+ <link rel="icon" type="image/png" sizes="{{$i}}x{{$i}}" href="{{ $image.Permalink }}" />
+{{ end }}
+{{ with resources.Get "img/icon.png" }}
+ {{ $image := .Resize "180x CatmullRom" }}
+ <link rel="apple-touch-icon" sizes="180x180" href="{{ $image.Permalink }}" />
+{{ end }}