diff --git a/src/content/post/placeholder2.md b/src/content/post/placeholder2.md index ad88bb7..107fc8d 100644 --- a/src/content/post/placeholder2.md +++ b/src/content/post/placeholder2.md @@ -4,5 +4,6 @@ date: '2024-09-20' description: "This is a placeholder description" tags: ["a123"] series: ["placeholder", "another-series"] +thumbnail: "/favicon.png" --- ## Content diff --git a/src/content/post/placeholder3.md b/src/content/post/placeholder3.md index c226705..695e93d 100644 --- a/src/content/post/placeholder3.md +++ b/src/content/post/placeholder3.md @@ -1,7 +1,10 @@ --- title: Placeholder 3 date: '2024-09-24' -tags: [] +tags: ["hi"] series: ["placeholder"] +thumbnail: "https://en.wikipedia.org/static/images/icons/wikipedia.png" --- ## Content + +This post has a thumbnail. diff --git a/src/lib/components/PostHeader.svelte b/src/lib/components/PostHeader.svelte index ae99921..62bbb97 100644 --- a/src/lib/components/PostHeader.svelte +++ b/src/lib/components/PostHeader.svelte @@ -9,47 +9,86 @@ const series = post?.series || []; -
{seriesTag}
- {/each} +{post.title}
- {:else} - {post.title} +{seriesTag}
+ {/each} +{post?.description || ""}
-
- {#each (post?.tags ?? []) as tag, i}
- {#if i > 0}
-
{date}
+{post.title}
+ {:else} + {post.title} + {/if} + + +{post?.description || ""}
+
+ {#each (post?.tags ?? []) as tag, i}
+ {#if i > 0}
+
{date}
+