Richie Carey

Web Developer

Code Snippets and more

Hello, world

First post.

export async function getStaticProps() {
    const allPosts = getAllPosts([
        "title",
        "date",
        "slug",
        "content",
    ]);

    for (const post of allPosts) {
        post.content = await markdownToHtml(post.content);
    }
    return {
        props: { allPosts },
    };
}