mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-14 19:26:40 +02:00

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.
28 lines
855 B
HTML
28 lines
855 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>404 - Page not found</title>
|
|
{{ partial "head_includes.html" . }}
|
|
<style>
|
|
{{ partial "css/404.css" . | safeCSS }}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
{{ 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">
|
|
<div class="name">404</div>
|
|
</div>
|
|
<div class="detail">The page you were looking for does not exist.</div>
|
|
<div class="suggestion"><a href="/">Visit the home page</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|