@@ -1,11 +1,13 @@
1import { getPostBySlug } from "../../lib/lib";
1import { getPostBySlug } from "../../lib/lib";
2import GrantProgramOverview from "../../components/GrantProgramOverview";
2import GrantProgramOverview from "../../components/GrantProgramOverview";
3+import { MarkdownParse } from "../../components/Markdown";
4−export default function Post({ post, search }) {
5+export default function Post({ post, markdown, search }) {
6 <GrantProgramOverview
7 <GrantProgramOverview
7 program="bounties"
8 program="bounties"
8 post={post}
9 post={post}
9 search={search}
11 search={search}
10 actionText="View Open Bounties"
12 actionText="View Open Bounties"
11 actionLink="/grants?program=bounty&open=true&wip=false#view-grants"
13 actionLink="/grants?program=bounty&open=true&wip=false#view-grants"
@@ -19,8 +21,9 @@ export async function getStaticProps() {
19 ["title", "date", "slug", "content"],
21 ["title", "date", "slug", "content"],
24+ const markdown = JSON.stringify(MarkdownParse({ post }));
24− props: { post },
27+ props: { post, markdown },