@@ -1,11 +1,13 @@
11import { getPostBySlug } from "../../lib/lib";
22import GrantProgramOverview from "../../components/GrantProgramOverview";
3+import { MarkdownParse } from "../../components/Markdown";
34
4−export default function Post({ post, search }) {
5+export default function Post({ post, markdown, search }) {
56 return (
67 <GrantProgramOverview
78 program="bounties"
89 post={post}
10+ markdown={markdown}
911 search={search}
1012 actionText="View Open Bounties"
1113 actionLink="/grants?program=bounty&open=true&wip=false#view-grants"
@@ -19,8 +21,9 @@ export async function getStaticProps() {
1921 ["title", "date", "slug", "content"],
2022 "/"
2123 );
24+ const markdown = JSON.stringify(MarkdownParse({ post }));
2225
2326 return {
24− props: { post },
27+ props: { post, markdown },
2528 };
2629}