From 384513f6ea6eb681cb8d1f451efa66970d96bec2 Mon Sep 17 00:00:00 2001 From: Nishant Srivastava Date: Mon, 30 Dec 2019 13:05:11 +0100 Subject: [PATCH] check if favicon file exists --- layouts/partials/head/meta.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/layouts/partials/head/meta.html b/layouts/partials/head/meta.html index 4652a85..8903db5 100644 --- a/layouts/partials/head/meta.html +++ b/layouts/partials/head/meta.html @@ -17,8 +17,13 @@ - - + +{{ if (fileExists "static/images/favicon.png") }} + +{{ else if (fileExists "static/images/favicon.ico") }} + +{{ end }} +