diff --git a/src/app.css b/src/app.css index e577683..99d0b06 100644 --- a/src/app.css +++ b/src/app.css @@ -40,6 +40,7 @@ --shadow: theme('colors.java.800'); --name: theme('colors.java.800'); --navlink: theme('colors.eucalyptus.400'); + --series: theme('colors.sunglow.700'); } .dark { @@ -74,6 +75,7 @@ --shadow: theme('colors.java.100'); --name: theme('colors.java.300'); --navlink: theme('colors.eucalyptus.200'); + --series: theme('colors.sunglow.600'); } } diff --git a/src/content/post/placeholder2.md b/src/content/post/placeholder2.md index 356955e..ad88bb7 100644 --- a/src/content/post/placeholder2.md +++ b/src/content/post/placeholder2.md @@ -3,6 +3,6 @@ title: Placeholder 2 date: '2024-09-20' description: "This is a placeholder description" tags: ["a123"] -series: ["placeholder"] +series: ["placeholder", "another-series"] --- ## Content diff --git a/src/lib/components/PostHeader.svelte b/src/lib/components/PostHeader.svelte index 2c44f61..aefa5b2 100644 --- a/src/lib/components/PostHeader.svelte +++ b/src/lib/components/PostHeader.svelte @@ -1,5 +1,6 @@
+ {#if series} +
+ {#each series as seriesTag, i} + {#if i > 0} +
+ +
+ {/if} +

{seriesTag}

+ {/each} +
+ {/if}

- {#each series as seriesTag} -

{seriesTag}

- {/each} {#if inactive}

{post.title}

{:else} @@ -48,6 +58,6 @@ @apply text-3xl; } .series-tag { - color: theme('colors.sunglow.600'); + color: var(--series); }