From 568c1b740fd975cba6b8ebc2f23b7ffb7ffb3142 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Thu, 10 Oct 2024 12:16:44 -0700 Subject: [PATCH] feat: Display series --- src/lib/components/PostHeader.svelte | 7 +++++++ src/routes/tag/+page.svelte | 13 ++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/lib/components/PostHeader.svelte b/src/lib/components/PostHeader.svelte index f8d78ce..edfba5c 100644 --- a/src/lib/components/PostHeader.svelte +++ b/src/lib/components/PostHeader.svelte @@ -4,10 +4,14 @@ export let link: Option = null; const date = metadata.date.toISOString().slice(0,-14); + const series = metadata?.series || [];

+ {#each series as seriesTag} +

{seriesTag}

+ {/each} {#if link} {metadata.title} {:else} @@ -40,4 +44,7 @@ #post-title { @apply text-3xl; } + .series-tag { + color: theme('colors.sunglow.600'); + } diff --git a/src/routes/tag/+page.svelte b/src/routes/tag/+page.svelte index 2386ccf..b0b49de 100644 --- a/src/routes/tag/+page.svelte +++ b/src/routes/tag/+page.svelte @@ -12,17 +12,16 @@

Tags


-
    +
    {#each allTags as tag} -
  • - {tag} -
  • + {tag} {/each} -
+