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 },
};
}