Skip to content

Commit 0c90c8b

Browse files
committed
feat: add custom 404 page
1 parent 004b8f0 commit 0c90c8b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/pages/404.astro

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
import Base from "../layouts/Base.astro";
3+
---
4+
5+
<Base title="404 — Not Found" description="The page you’re looking for doesn’t exist.">
6+
<div class="wrap">
7+
<nav aria-label="Primary">
8+
<a href="/">About</a> /
9+
<a href="/blog">Blog</a>
10+
</nav>
11+
12+
<h1>Page not found</h1>
13+
<p class="muted">The link may be broken or the page may have moved.</p>
14+
<p><a href="/">← Back to home</a></p>
15+
</div>
16+
</Base>
17+

0 commit comments

Comments
 (0)