Skip to content

Commit

Permalink
Add 404.html
Browse files Browse the repository at this point in the history
See sveltejs/kit#1209

The "prerender" instruction on the `kit` config from that thread didn't
seem necessary, probably because my `+layout.server.ts` had that set up
already? Regardless, putting `prerender: { default: true }` wasn't liked
by vite in my current setup...
  • Loading branch information
jeroenheijmans committed Mar 3, 2023
1 parent a8ff9d5 commit 6699c9d
Show file tree
Hide file tree
Showing 14 changed files with 64 additions and 21 deletions.
43 changes: 43 additions & 0 deletions docs/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<!-- prettier-ignore -->
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.png" />
<meta name="viewport" content="width=device-width" />
<meta name="description" content="Tiered lists where I rank the games, books, and other things I've enjoyed. For bookkeeping and sharing purposes: enjoy!">
<meta name="author" content="Jeroen Heijmans">
<meta name="Copyright" content="Copyright Jeroen Heijmans 2023. All Rights Reserved.">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@jeroenheijmans">
<meta name="twitter:title" content="Tierdom JeroenHeijmans.nl">
<meta name="twitter:description" content="Tiered lists where I rank the games, books, and other things I've enjoyed. For bookkeeping and sharing purposes: enjoy!">
<meta name="twitter:image" content="https://tierdom.jeroenheijmans.nl/img/og-image.png">
<meta name="twitter:image:alt" content="Visual representation of Tiers 'S/A/B/C/D/E/F and their colors.">
<meta property="og:title" content="Tierdom JeroenHeijmans.nl">
<meta property="og:description" content="Tiered lists where I rank the games, books, and other things I've enjoyed. For bookkeeping and sharing purposes: enjoy!">
<meta property="og:type" content="website">
<meta property="og:image" content="https://tierdom.jeroenheijmans.nl/img/og-image.png">
<meta property="og:image:alt" content="Visual representation of Tiers 'S/A/B/C/D/E/F and their colors.">
<meta property="og:url" content="https://tierdom.jeroenheijmans.nl">
<title>Tierdom JeroenHeijmans.nl</title>
<meta http-equiv="content-security-policy" content="">
<link rel="modulepreload" href="/_app/immutable/start-59fd61be.js">
<link rel="modulepreload" href="/_app/immutable/chunks/index-1e48f5d8.js">
<link rel="modulepreload" href="/_app/immutable/chunks/singletons-f058118c.js">
<link rel="modulepreload" href="/_app/immutable/chunks/index-a869863a.js">
</head>
<body data-sveltekit-preload-data="hover" class="overflow-y-scroll">
<div style="display: contents">
<script type="module" data-sveltekit-hydrate="45h">
import { start } from "/_app/immutable/start-59fd61be.js";

start({
assets: "",
env: {},
target: document.querySelector('[data-sveltekit-hydrate="45h"]').parentNode,
version: "1677874311817"
});
</script></div>
</body>
</html>
1 change: 0 additions & 1 deletion docs/_app/immutable/chunks/1-52ac9a98.js

This file was deleted.

1 change: 1 addition & 0 deletions docs/_app/immutable/chunks/1-6c25d596.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import{default as t}from"../components/pages/_error.svelte-b82f9c0e.js";export{t as component};

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/_app/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"1676214757359"}
{"version":"1677874311817"}
6 changes: 3 additions & 3 deletions docs/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<title>Tierdom JeroenHeijmans.nl</title>
<meta http-equiv="content-security-policy" content="">
<link href="./_app/immutable/assets/_layout-f088eab7.css" rel="stylesheet">
<link rel="modulepreload" href="./_app/immutable/start-e788304b.js">
<link rel="modulepreload" href="./_app/immutable/start-59fd61be.js">
<link rel="modulepreload" href="./_app/immutable/chunks/index-1e48f5d8.js">
<link rel="modulepreload" href="./_app/immutable/chunks/singletons-f058118c.js">
<link rel="modulepreload" href="./_app/immutable/chunks/index-a869863a.js">
Expand Down Expand Up @@ -155,13 +155,13 @@ <h2 class="text-lg font-bold mt-8">Is this Open Source?</h2>


<script type="module" data-sveltekit-hydrate="15pre4q">
import { start } from "./_app/immutable/start-e788304b.js";
import { start } from "./_app/immutable/start-59fd61be.js";

start({
assets: "",
env: {},
target: document.querySelector('[data-sveltekit-hydrate="15pre4q"]').parentNode,
version: "1676214757359",
version: "1677874311817",
hydrate: {
node_ids: [0, 3],
data: [{type:"data",data:null,uses:{}},null],
Expand Down
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<title>Tierdom JeroenHeijmans.nl</title>
<meta http-equiv="content-security-policy" content="">
<link href="./_app/immutable/assets/_layout-f088eab7.css" rel="stylesheet">
<link rel="modulepreload" href="./_app/immutable/start-e788304b.js">
<link rel="modulepreload" href="./_app/immutable/start-59fd61be.js">
<link rel="modulepreload" href="./_app/immutable/chunks/index-1e48f5d8.js">
<link rel="modulepreload" href="./_app/immutable/chunks/singletons-f058118c.js">
<link rel="modulepreload" href="./_app/immutable/chunks/index-a869863a.js">
Expand Down Expand Up @@ -115,13 +115,13 @@ <h2 class="text-xl font-bold mt-4">Other websites</h2>


<script type="module" data-sveltekit-hydrate="n78s2s">
import { start } from "./_app/immutable/start-e788304b.js";
import { start } from "./_app/immutable/start-59fd61be.js";

start({
assets: "",
env: {},
target: document.querySelector('[data-sveltekit-hydrate="n78s2s"]').parentNode,
version: "1676214757359",
version: "1677874311817",
hydrate: {
node_ids: [0, 2],
data: [{type:"data",data:null,uses:{}},null],
Expand Down
6 changes: 3 additions & 3 deletions docs/tier-lists/books.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<title>Tierdom JeroenHeijmans.nl</title>
<meta http-equiv="content-security-policy" content="">
<link href="../_app/immutable/assets/_layout-f088eab7.css" rel="stylesheet">
<link rel="modulepreload" href="../_app/immutable/start-e788304b.js">
<link rel="modulepreload" href="../_app/immutable/start-59fd61be.js">
<link rel="modulepreload" href="../_app/immutable/chunks/index-1e48f5d8.js">
<link rel="modulepreload" href="../_app/immutable/chunks/singletons-f058118c.js">
<link rel="modulepreload" href="../_app/immutable/chunks/index-a869863a.js">
Expand Down Expand Up @@ -594,13 +594,13 @@


<script type="module" data-sveltekit-hydrate="f30c52">
import { start } from "../_app/immutable/start-e788304b.js";
import { start } from "../_app/immutable/start-59fd61be.js";

start({
assets: "",
env: {},
target: document.querySelector('[data-sveltekit-hydrate="f30c52"]').parentNode,
version: "1676214757359",
version: "1677874311817",
hydrate: {
node_ids: [0, 4],
data: [{type:"data",data:null,uses:{}},null],
Expand Down
6 changes: 3 additions & 3 deletions docs/tier-lists/games.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<title>Tierdom JeroenHeijmans.nl</title>
<meta http-equiv="content-security-policy" content="">
<link href="../_app/immutable/assets/_layout-f088eab7.css" rel="stylesheet">
<link rel="modulepreload" href="../_app/immutable/start-e788304b.js">
<link rel="modulepreload" href="../_app/immutable/start-59fd61be.js">
<link rel="modulepreload" href="../_app/immutable/chunks/index-1e48f5d8.js">
<link rel="modulepreload" href="../_app/immutable/chunks/singletons-f058118c.js">
<link rel="modulepreload" href="../_app/immutable/chunks/index-a869863a.js">
Expand Down Expand Up @@ -3470,13 +3470,13 @@ <h2 class="text-xl font-bold mt-4">What about the xx/100 ratings?</h2>


<script type="module" data-sveltekit-hydrate="r7oc2e">
import { start } from "../_app/immutable/start-e788304b.js";
import { start } from "../_app/immutable/start-59fd61be.js";

start({
assets: "",
env: {},
target: document.querySelector('[data-sveltekit-hydrate="r7oc2e"]').parentNode,
version: "1676214757359",
version: "1677874311817",
hydrate: {
node_ids: [0, 5],
data: [{type:"data",data:null,uses:{}},null],
Expand Down
6 changes: 3 additions & 3 deletions docs/tier-lists/movies.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<title>Tierdom JeroenHeijmans.nl</title>
<meta http-equiv="content-security-policy" content="">
<link href="../_app/immutable/assets/_layout-f088eab7.css" rel="stylesheet">
<link rel="modulepreload" href="../_app/immutable/start-e788304b.js">
<link rel="modulepreload" href="../_app/immutable/start-59fd61be.js">
<link rel="modulepreload" href="../_app/immutable/chunks/index-1e48f5d8.js">
<link rel="modulepreload" href="../_app/immutable/chunks/singletons-f058118c.js">
<link rel="modulepreload" href="../_app/immutable/chunks/index-a869863a.js">
Expand Down Expand Up @@ -70,13 +70,13 @@


<script type="module" data-sveltekit-hydrate="9f4kb2">
import { start } from "../_app/immutable/start-e788304b.js";
import { start } from "../_app/immutable/start-59fd61be.js";

start({
assets: "",
env: {},
target: document.querySelector('[data-sveltekit-hydrate="9f4kb2"]').parentNode,
version: "1676214757359",
version: "1677874311817",
hydrate: {
node_ids: [0, 6],
data: [{type:"data",data:null,uses:{}},null],
Expand Down
2 changes: 1 addition & 1 deletion src/routes/+error.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { page } from '$app/stores';
</script>

<div class="mx-auto max-w-page text-center">
<div class="mx-auto max-w-page">
<h1 class="text-4xl font-bold mt-8">Woops!</h1>
<p class="py-4 text-xl">
{#if $page.status === 404}
Expand Down
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const config = {
manifest: false,
pages: 'docs',
assets: 'docs',
fallback: null,
fallback: '404.html',
precompress: false,
strict: true,
}),
Expand Down

0 comments on commit 6699c9d

Please sign in to comment.