Add 404 page
This commit is contained in:
parent
b8efe39d7d
commit
196ef43f8a
3 changed files with 12 additions and 14 deletions
|
@ -1,14 +0,0 @@
|
|||
<script>
|
||||
import { page } from "$app/stores";
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>{$page.status} | pancakes</title>
|
||||
<meta name="description" content={$page.error.message} />
|
||||
</svelte:head>
|
||||
|
||||
<main>
|
||||
<h1>{$page.status}</h1>
|
||||
<p>{$page.error.message}</p>
|
||||
<img src="/assets/neocat_shocked.png" alt="neocat shocked" />
|
||||
</main>
|
1
src/routes/404/+layout.js
Normal file
1
src/routes/404/+layout.js
Normal file
|
@ -0,0 +1 @@
|
|||
export const trailingSlash = "never";
|
11
src/routes/404/+page.svelte
Normal file
11
src/routes/404/+page.svelte
Normal file
|
@ -0,0 +1,11 @@
|
|||
<svelte:head>
|
||||
<title>Page not found | pancakes</title>
|
||||
<meta name="description" content="Page not found" />
|
||||
<meta property="og:title" content="404" />
|
||||
</svelte:head>
|
||||
|
||||
<main id="main-content">
|
||||
<h1>404</h1>
|
||||
<p>Page not found</p>
|
||||
<img src="/assets/neocat_shocked.png" alt="neocat shocked" />
|
||||
</main>
|
Loading…
Reference in a new issue