Files
cocoa-eh-hugo-theme/layouts/404.html
Eli Dourado 9ea1d79fb2 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.
2019-09-15 08:37:18 -07:00

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>