diff --git a/themes/tfsci/layouts/partials/head/resources.html b/themes/tfsci/layouts/partials/head/resources.html index 3fc5f37..c39ed23 100644 --- a/themes/tfsci/layouts/partials/head/resources.html +++ b/themes/tfsci/layouts/partials/head/resources.html @@ -1,6 +1,20 @@ -{{- with resources.GetMatch "favicon**" -}} +{{- $image := resources.GetMatch "favicon**" }} +{{- if $image -}} +{{- range slice 192 96 32 16 }} +{{- $format := printf "%[1]dx%[1]d" . }} +{{- with $image.Resize $format }} {{- end }} +{{- end }} + +{{- range slice 180 167 152 144 120 114 76 72 }} +{{- $format := printf "%[1]dx%[1]d" . }} +{{- with $image.Resize $format }} + +{{- end }} +{{- end }} + +{{- end }} {{- with resources.Get "main.scss" | toCSS | minify | fingerprint }} {{- end }}