feat: improved ToC highlighting

This commit is contained in:
enscribe 2024-09-13 17:45:18 -07:00
parent b93eddea6b
commit c2fa587935
No known key found for this signature in database
GPG key ID: 9BBD5C4114E25322
16 changed files with 636 additions and 115 deletions

View file

@ -11,18 +11,18 @@ const authors = await getCollection('authors')
<Layout title="Authors" description="A list of authors on this site.">
<Container class="flex flex-col gap-y-6">
<Breadcrumbs items={[{ label: 'Authors' }]} />
{authors.length > 0 ? (
<ul class="not-prose flex flex-col gap-4">
{
authors.map((author) => (
{
authors.length > 0 ? (
<ul class="not-prose flex flex-col gap-4">
{authors.map((author) => (
<li>
<AuthorCard author={author} />
</li>
))
}
</ul>
) : (
<p class="text-center text-muted-foreground">No authors found.</p>
)}
))}
</ul>
) : (
<p class="text-center text-muted-foreground">No authors found.</p>
)
}
</Container>
</Layout>