From 33d534ca239916869936b91be31e8609b6fa04fc Mon Sep 17 00:00:00 2001 From: J-onasJones Date: Sat, 15 Jun 2024 14:48:01 +0200 Subject: [PATCH] cleaned up post loading process cleaned up code made 404 and loading sequence prettier --- src/routes/Post.svelte | 64 ++++++++++++++++++++++++++++++++++++------ 1 file changed, 55 insertions(+), 9 deletions(-) diff --git a/src/routes/Post.svelte b/src/routes/Post.svelte index 4a084e9..1fdba6c 100644 --- a/src/routes/Post.svelte +++ b/src/routes/Post.svelte @@ -1,21 +1,31 @@ +{#if loading} + +{/if} -

{params.year}, {params.month}, {params.day}, {params.title}

+{#if error404} + +{/if}
-

{post.title}

-

{post.description}

+

{postTitle}

+

{postDescription}