<script context="module">
    export async function load({ fetch }) {
        const resp = await fetch('/latest.json');
        const postMeta = await resp.json();
        const post = await import(`./_posts/${postMeta.slug}.svx`);
        return {
            props: {
                post: post.default,
            }
        }
    }
</script>

<script>
    export let post;
</script>

<svelte:component this={post} />
