From b7cc31a1be302bd8ca883d418e4f454199a971b9 Mon Sep 17 00:00:00 2001 From: Joe Hutchinson Date: Thu, 3 Jan 2019 11:17:23 -0500 Subject: [PATCH] Only include links to favicons if the file exists --- layouts/partials/head.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 7c9ef81..533a385 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -5,9 +5,13 @@ {{ if ne .URL "/" }}{{ .Title }} · {{ end }}{{ .Site.Title }} + {{ if (fileExists "static/img/favicon.ico") -}} + {{- end }} + {{ if (fileExists "static/img/favicon.png") -}} + {{- end }}