<script context="module">
    import { formatDate } from './datefmt.js';
    import Link from './Link.svelte';
    export { Link as a };
</script>

<script>
    export let title, date;
</script>

<svelte:head>
    <title>{title}</title>
</svelte:head>

<div id="post">
    <h1>{title}</h1>
    <p><em>{formatDate(date)}</em></p>
    <slot></slot>
</div>
