première publication

This commit is contained in:
2026-01-11 15:54:07 +04:00
parent bba4534872
commit 34e5c342f8
9 changed files with 246 additions and 18 deletions

View File

@@ -0,0 +1,18 @@
---
import { getCollection } from 'astro:content';
import Layout from '../../layouts/Layout.astro';
const allJournalEntries = await getCollection('journal');
---
<Layout title="Journal d'Aventure">
<h1>Journal d'Aventure</h1>
<ul>
{allJournalEntries.map(entry => (
<li>
<a href={`/journal/${entry.slug}`}>{entry.data.title}</a>
<p>Publié le: {entry.data.publishDate.toLocaleDateString('fr-FR')}</p>
</li>
))}
</ul>
</Layout>