2023-07-19 21:31:30 +02:00
|
|
|
---
|
|
|
|
import type { CollectionEntry } from 'astro:content';
|
|
|
|
import FormattedDate from '../components/FormattedDate.astro';
|
2023-12-09 16:04:28 +01:00
|
|
|
import SectionContainer from '../components/SectionContainer.astro';
|
2023-07-19 21:31:30 +02:00
|
|
|
|
|
|
|
type Props = CollectionEntry<'blog'>['data'];
|
|
|
|
|
2023-09-25 14:45:37 +02:00
|
|
|
const { title, description, pubDate } = Astro.props;
|
2023-07-19 21:31:30 +02:00
|
|
|
---
|
2023-12-09 16:04:28 +01:00
|
|
|
<SectionContainer>
|
2023-12-09 20:05:38 +01:00
|
|
|
<main class="flex flex-col flex-1 mb-auto break-words mt-4">
|
2023-12-09 16:04:28 +01:00
|
|
|
<article>
|
|
|
|
<h1 class="text-4xl font-extrabold">{title}</h1>
|
|
|
|
<p class="italic">{description}</p>
|
|
|
|
<FormattedDate date={pubDate}/>
|
|
|
|
<div class="blog">
|
|
|
|
<slot />
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
</main>
|
|
|
|
</SectionContainer>
|