diff --git a/src/lib/BlogCard/PostOuter.svelte b/src/lib/BlogCard/PostOuter.svelte
index 20b0653..44369c6 100644
--- a/src/lib/BlogCard/PostOuter.svelte
+++ b/src/lib/BlogCard/PostOuter.svelte
@@ -7,6 +7,6 @@
{#if url}
- View on Ghost
+ View on Ghost
{/if}
\ No newline at end of file
diff --git a/src/routes/blog/[title]/+page.server.ts b/src/routes/blog/[title]/+page.server.ts
index 4d8c9fa..9c4478b 100644
--- a/src/routes/blog/[title]/+page.server.ts
+++ b/src/routes/blog/[title]/+page.server.ts
@@ -4,7 +4,10 @@ import fetchApi from "$lib/ghost";
export const load = (async ({ params }) => {
const data = await fetchApi("posts/slug/" + params.title);
+ const allPosts = await fetchApi("posts");
+
return {
- post: data.posts[0]
+ post: data.posts[0],
+ allPosts: allPosts
};
}) satisfies PageServerLoad;
diff --git a/src/routes/blog/[title]/+page.svelte b/src/routes/blog/[title]/+page.svelte
index 139306d..b114438 100644
--- a/src/routes/blog/[title]/+page.svelte
+++ b/src/routes/blog/[title]/+page.svelte
@@ -1,8 +1,12 @@
@@ -15,4 +19,31 @@
-
\ No newline at end of file
+
+
+
+ {#if previous}
+
+ Previous post
+
+
+
+
+ {/if}
+
+ {#if next}
+
+ Next post
+
+
+
+
+ {/if}
+
+
+
+
\ No newline at end of file