-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manually create a 404 page. Fixes #12
Svelte Kit doesn't offer a good way to generate single HTML pages like 404.html, so I have to generate a regular page and then move it. Solution suggested here: sveltejs/kit#1209 (comment)
- Loading branch information
Showing
3 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script lang="ts"> | ||
import Title from '../components/Title.svelte'; | ||
</script> | ||
|
||
<Title title="404: Not Found!" /> | ||
<p> | ||
<a href="https://en.wikipedia.org/wiki/Link_rot">Link rot</a>] is a serious problem on the | ||
internet and I'm sorry to have contributed to it. Hopefully you'll find what you're looking for by | ||
using the navigation links above. | ||
</p> |