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.
This commit is contained in:
Eli Dourado
2019-09-15 11:37:18 -04:00
committed by Michael Noronha
parent 3511cf88a7
commit 9ea1d79fb2

View File

@@ -9,7 +9,11 @@
</style>
</head>
<body>
<img src={{ .Site.Params.logofile }} class="logo" alt="logo" />
{{ if (not (isset .Site.Params "logofile")) }}
<a href="https://github.com/mtn/cocoa-eh-hugo-theme/wiki/Configuration#logo">Logo HOWTO</a>
{{ else if ne .Site.Params.logofile "" }}
<img class="logo" src="{{ .Site.Params.logofile | relURL }}" alt="logo">
{{ end }}
<div class="container f04">
<div class="content">
<div class="header column">