feat: only show hero and carousel on index

This commit is contained in:
Troy 2025-02-13 16:55:09 +00:00
parent 0edd672a70
commit 81538a6fdf
Signed by: troy
GPG key ID: DFC06C02ED3B4711
18 changed files with 104 additions and 225 deletions

View file

@ -13,14 +13,14 @@ const { collection } = Astro.props;
class="group hover:bg-tertiary/30 bg-none"
href={`/${collection.collection}/${collection.slug}`}
>
<article class="flex flex-col">
<h3 class="mb-1 font-semibold text-balance">
<span class="text-secondary">{collection.data.title}</span><span
class="text-tertiary group-hover:text-accent ml-2 transition-colors"
>{collection.data.description}</span
>
<article class="flex flex-row items-center justify-between">
<h3 class="text-secondary mb-1 font-semibold text-nowrap">
{collection.data.title}
</h3>
<time class="text-accent block text-sm"
<hr
class="text-tertiary group-hover:text-secondary mx-6 w-full border-dotted transition-colors duration-300"
/>
<time class="text-accent block text-nowrap"
><FormattedDate date={collection.data.date} /></time
>
</article>