2023-04-19 19:18:50 +02:00
|
|
|
---
|
|
|
|
import type { CollectionEntry } from 'astro:content';
|
2023-04-26 10:23:17 +02:00
|
|
|
|
2023-05-10 22:44:00 +02:00
|
|
|
import BaseLayout from '../layouts/BaseLayout.astro';
|
2023-04-19 19:18:50 +02:00
|
|
|
import FormattedDate from '../components/FormattedDate.astro';
|
|
|
|
|
|
|
|
type Props = CollectionEntry<'blog'>['data'];
|
|
|
|
|
2023-04-26 10:23:17 +02:00
|
|
|
const { title, description, pubDate } = Astro.props;
|
2023-04-19 19:18:50 +02:00
|
|
|
---
|
|
|
|
|
2023-05-10 22:44:00 +02:00
|
|
|
<BaseLayout title={title} description={description}>
|
|
|
|
<article>
|
|
|
|
<h1 class="title">{title}</h1>
|
|
|
|
<FormattedDate date={pubDate} />
|
|
|
|
<slot />
|
|
|
|
</article>
|
|
|
|
</BaseLayout>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.title {
|
|
|
|
font-size: 2em;
|
|
|
|
margin: 0;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
</style>
|