diff --git a/src/lib/components/pageTransition.svelte b/src/lib/components/pageTransition.svelte new file mode 100644 index 0000000..a54521f --- /dev/null +++ b/src/lib/components/pageTransition.svelte @@ -0,0 +1,13 @@ + + +{#key url} +
+ +
+{/key} diff --git a/src/routes/__error.svelte b/src/routes/__error.svelte new file mode 100644 index 0000000..d32c898 --- /dev/null +++ b/src/routes/__error.svelte @@ -0,0 +1,111 @@ + + + + +

+ {#if status == 404} + 404 - Page Not Found + {:else} + {status} - {error.message} + {/if} +

+ + +

I'm sorry for that. If this is a repeated problem, try contacting me (danbulant@danbulant.eu)

+ +
+ +
+ +{#if posts && posts.length > 0} +
OR
+ +
+

+ Read one of the blog posts +

+ + + +
+ {#each posts.slice(1, 6) as post (post.title)} + + {/each} +
+{/if} + + diff --git a/src/routes/__layout.svelte b/src/routes/__layout.svelte new file mode 100644 index 0000000..f570270 --- /dev/null +++ b/src/routes/__layout.svelte @@ -0,0 +1,17 @@ + + + + + + +
+ + + +
diff --git a/src/routes/posts/__layout.svelte b/src/routes/posts/__layout.svelte index dfa959b..ff59c7b 100644 --- a/src/routes/posts/__layout.svelte +++ b/src/routes/posts/__layout.svelte @@ -1,11 +1,5 @@ - - - -