Skip to content

Commit 057307c

Browse files
committed
chore: custom 404
1 parent 69ddd62 commit 057307c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docs/layouts/404.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{{ define "main" }}
2+
<div class='hx-mx-auto hx-flex {{ partial "utils/page-width" . }}'>
3+
{{ partial "sidebar.html" (dict "context" . "disableSidebar" true "displayPlaceholder" true) }}
4+
{{ partial "toc.html" . }}
5+
<article class="hx-w-full hx-break-words hx-flex hx-min-h-[calc(100vh-var(--navbar-height))] hx-min-w-0 hx-justify-center hx-pb-8 hx-pr-[calc(env(safe-area-inset-right)-1.5rem)]">
6+
<main
7+
class="hx-w-full hx-min-w-0 hx-max-w-6xl hx-flex hx-flex-col hx-items-center hx-justify-center">
8+
<div class="hx-flex hx-flex-col hx-items-center hx-justify-center">
9+
<a href="/" ><img src="/images/logo-circle.svg" alt="logo" width="200" height="200"></a>
10+
<h1 id="error-heading"
11+
class="not-prose hx-text-4xl font-bold leading-none tracking-tighter md:text-5xl py-2 bg-clip-text text-transparent bg-gradient-to-r from-gray-900 to-gray-600 dark:from-gray-100 dark:to-gray-400">
12+
404
13+
</h1>
14+
<p class="hx-mb-6">
15+
The page could not be found.
16+
</p>
17+
<a href="/" class="hx-font-medium hx-px-6 hx-py-3 hx-text-center inline-block">
18+
Go to the home page
19+
</a>
20+
</div>
21+
</main>
22+
</article>
23+
</div>
24+
{{ end }}

0 commit comments

Comments
 (0)