From 79b040a3ec58e5e80502d8c8ff0b86c666811bb3 Mon Sep 17 00:00:00 2001 From: Michael Serajnik Date: Sat, 15 Jun 2019 15:55:40 +0200 Subject: [PATCH] Only insert custom CSS link if the file exists --- layouts/partials/head.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index c7c2ca9..c90f232 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -12,7 +12,9 @@ {{ end }} - +{{ if (fileExists "static/style.css") -}} + +{{- end }}