pages: remove old markdown propagation for overview

This commit is contained in:
Matilde Park 2022-06-23 01:21:00 -07:00
parent f52e35fa7a
commit 4ef41dbd4c

View File

@ -168,21 +168,3 @@ export default function Overview({ markdown, search }) {
</Container>
);
}
export async function getStaticProps({ params }) {
const post = getPostBySlug(
"overview",
["title", "slug", "content", "extra"],
"/"
);
let { index } = post?.extra || { index: null };
if (index === undefined) {
index = null;
}
const markdown = JSON.stringify(Markdown.parse({ post }));
return {
props: { post, markdown, index },
};
}