@@ -0,0 +1,21 @@
1+import { getPostBySlug } from "../lib/lib";
2+import BasicPage from "../components/BasicPage";
3+import { MarkdownParse } from "../components/Markdown";
4+
5+export default function Post({ post, markdown, search }) {
6+ return <BasicPage post={post} markdown={markdown} search={search} />;
7+}
8+
9+export async function getStaticProps() {
10+ const post = getPostBySlug(
11+ "/apprenticeships",
12+ ["title", "slug", "content"],
13+ "/"
14+ );
15+
16+ const markdown = JSON.stringify(MarkdownParse({ post }));
17+
18+ return {
19+ props: { post, markdown },
20+ };
21+}