mirror of
https://github.com/urbit/developers.urbit.org.git
synced 2024-09-11 13:55:59 +03:00
pages: remove old markdown propagation for overview
This commit is contained in:
parent
f52e35fa7a
commit
4ef41dbd4c
@ -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 },
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user