From 9ea1d79fb262045e356dafa73f03068547a2d242 Mon Sep 17 00:00:00 2001 From: Eli Dourado Date: Sun, 15 Sep 2019 11:37:18 -0400 Subject: [PATCH] Don't put logofile on 404 page if it doesn't exist (#136) Currently, if the parameter logofile is set to "", the 404 page shows a broken image. This modification updates the 404 page to follow the logic of header.html and only show the logo if it isn't empty. --- layouts/404.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/404.html b/layouts/404.html index 780b41a..0649582 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -9,7 +9,11 @@ - + {{ if (not (isset .Site.Params "logofile")) }} + Logo HOWTO + {{ else if ne .Site.Params.logofile "" }} + + {{ end }}