fix: Stacking series problem and undefined descriptions problem #24

Merged
aniva merged 4 commits from post/header into main 2024-10-18 11:27:47 -07:00
3 changed files with 17 additions and 5 deletions
Showing only changes of commit e9af9f019a - Show all commits

View File

@ -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');
}
}

View File

@ -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

View File

@ -1,5 +1,6 @@
<script lang="ts">
import type { Post } from '$lib/types'
import Dot from "svelte-radix/Dot.svelte";
import DividerVertical from "svelte-radix/DividerVertical.svelte";
export let post: Post;
@ -9,10 +10,19 @@
</script>
<div id="post-heading">
{#if series}
<div class="flex flex-row justify-left items-center">
{#each series as seriesTag, i}
{#if i > 0}
<div class="separator text-sm">
<Dot />
</div>
{/if}
<p class="series-tag">{seriesTag}</p>
{/each}
</div>
{/if}
<h2>
{#each series as seriesTag}
<p class="series-tag">{seriesTag}</p>
{/each}
{#if inactive}
<p id="post-title">{post.title}</p>
{:else}
@ -48,6 +58,6 @@
@apply text-3xl;
}
.series-tag {
color: theme('colors.sunglow.600');
color: var(--series);
}
</style>