theme: Customize 404 page with 404cat

This commit is contained in:
echtnurich 2023-11-09 19:51:23 +01:00 committed by jtbx
parent 80a9b0a2d3
commit eb43562384
2 changed files with 3 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

View file

@ -1,8 +1,10 @@
{{ define "main" }} {{ define "main" }}
{{- $image := resources.Get "images/404.png" }}
<main class="container" aria-role="main"> <main class="container" aria-role="main">
<div> <div>
<h1 id="title">404 Page not Found</h1> <h1 id="title">404 Page not Found</h1>
<a href="{{ "" | relURL }}">Back Home</a> <p>The requested page was not found. Maybe try searching from <a href="{{ .Site.Home.RelPermalink }}">home</a>.</p>
<img src="{{ $image.RelPermalink }}">
</div> </div>
</main> </main>
{{ end }} {{ end }}