@@ -0,0 +1,21 @@
1+import { getPostBySlug } from "../lib/lib";
2+import PageWithIndex from "../components/PageWithIndex";
3+import Markdown from "../components/Markdown";
5+export default function Post({ post, markdown, search }) {
6+ return <PageWithIndex post={post} markdown={markdown} search={search} />;
9+export async function getStaticProps() {
10+ const post = getPostBySlug(
12+ ["title", "slug", "content"],
16+ const markdown = await Markdown({ post });
19+ props: { post, markdown },