diff options
| author | aman333nolawz <amananudhiu@gmail.com> | 2026-03-02 21:49:13 +0530 |
|---|---|---|
| committer | aman333nolawz <amananudhiu@gmail.com> | 2026-03-02 21:49:13 +0530 |
| commit | d41eff9eccf66644c4c60f53cb516bf079937a28 (patch) | |
| tree | 248a0863a3181369f943d678ec4273911d35efac /src/pages/authors/index.astro | |
Using astro-erudite for static site generation
Diffstat (limited to 'src/pages/authors/index.astro')
| -rw-r--r-- | src/pages/authors/index.astro | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/pages/authors/index.astro b/src/pages/authors/index.astro new file mode 100644 index 0000000..ba311a0 --- /dev/null +++ b/src/pages/authors/index.astro @@ -0,0 +1,27 @@ +--- +import AuthorCard from '@/components/AuthorCard.astro' +import Breadcrumbs from '@/components/Breadcrumbs.astro' +import PageHead from '@/components/PageHead.astro' +import Layout from '@/layouts/Layout.astro' +import { getAllAuthors } from '@/lib/data-utils' + +const authors = await getAllAuthors() +--- + +<Layout class="max-w-3xl"> + <PageHead slot="head" title="Authors" /> + <Breadcrumbs items={[{ label: 'Authors', icon: 'lucide:users' }]} /> + { + authors.length > 0 ? ( + <ul class="flex flex-col gap-4"> + {authors.map((author) => ( + <li> + <AuthorCard author={author} /> + </li> + ))} + </ul> + ) : ( + <p class="text-muted-foreground text-center">No authors found.</p> + ) + } +</Layout> |
