From 9a6c891671fa62702462c65886ab2eb20ee667f4 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Fri, 18 Oct 2024 10:53:54 -0700 Subject: [PATCH] fix: No undefined description --- src/content/post/placeholder3.md | 1 - src/lib/components/PostHeader.svelte | 8 +++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/content/post/placeholder3.md b/src/content/post/placeholder3.md index 52bf7b5..c226705 100644 --- a/src/content/post/placeholder3.md +++ b/src/content/post/placeholder3.md @@ -1,7 +1,6 @@ --- title: Placeholder 3 date: '2024-09-24' -description: "This is a placeholder description" tags: [] series: ["placeholder"] --- diff --git a/src/lib/components/PostHeader.svelte b/src/lib/components/PostHeader.svelte index c11f8d6..2c44f61 100644 --- a/src/lib/components/PostHeader.svelte +++ b/src/lib/components/PostHeader.svelte @@ -19,9 +19,11 @@ {post.title} {/if} -
-

{post.description}

-
+ {#if post?.description} +
+

{post.description}

+
+ {/if}

{#each (post?.tags ?? []) as tag, i}