From bcd07daf9b6321c3bc81b811495a45065c30ca11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Tue, 18 Feb 2020 18:27:07 +0100 Subject: [PATCH] Send optional favicons only if provided For instance always sending logo.svg link at the last position breaks displaying favicon in Firefox if that file is missing (even if previously precised png is available). --- layouts/partials/head/meta.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html index 48b4927..ab06378 100644 --- a/layouts/partials/head/meta.html +++ b/layouts/partials/head/meta.html @@ -54,8 +54,12 @@ {{ else }} + {{ if (fileExists "static/apple-touch-icon.png") -}} - + {{- end }} + + {{ if (fileExists "static/logo.svg") -}} -{{ end }} \ No newline at end of file + {{- end }} +{{ end }}