From 1f28ed3a4b9401e202ed4e17747f13c4a129f1f3 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 13 Oct 2019 18:02:41 +0100 Subject: [PATCH] Add multiple favicon sizes --- layouts/_default/baseof.html | 2 +- layouts/partials/favicon.html | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/favicon.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 78a6766..78d5185 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -7,7 +7,7 @@ - + {{ partial "favicon.html" }} {{ partial "style.html" "scss/style.scss" }} {{ partial "style.html" "css/font-awesome.css" }} diff --git a/layouts/partials/favicon.html b/layouts/partials/favicon.html new file mode 100644 index 0000000..d63d622 --- /dev/null +++ b/layouts/partials/favicon.html @@ -0,0 +1,7 @@ +{{ $image := "/img/logo-transparent.png" }} +{{ $sizes := slice 16 32 64 100 200 }} + +{{ range $sizes }} + {{ $sizes := printf "%dx%d" . . }} + --> +{{ end }}