diff --git a/site/components/MDX.js b/site/components/MDX.js
index b3ae1b0..2ff4865 100644
--- a/site/components/MDX.js
+++ b/site/components/MDX.js
@@ -5,9 +5,9 @@ import { YOUTUBE_REGEX } from "../lib/constants";
import siteConfig from "../config/siteConfig";
import MdxContent from "./MdxContent";
-export default function MdxPage({ body, frontMatter }) {
+export default function MdxPage({ body, meta }) {
const { title, description, date, keywords, youtube, podcast, image, _raw } =
- frontMatter;
+ meta;
let youtubeThumnbnail;
diff --git a/site/pages/[...slug].js b/site/pages/[...slug].js
index 8b422b2..1e7ec73 100644
--- a/site/pages/[...slug].js
+++ b/site/pages/[...slug].js
@@ -1,18 +1,10 @@
-import { allOtherPages } from 'contentlayer/generated';
+import { allOtherPages } from "contentlayer/generated";
-import MdxPage from '../components/MDX';
-import siteConfig from "../config/siteConfig"
+import MdxPage from "../components/MDX";
+import siteConfig from "../config/siteConfig";
export default function Page({ body, ...meta }) {
- const frontMatter = {
- ...meta,
- date: meta.date === "Invalid Date" ? null : meta.date,
- created: meta.created === "Invalid Date" ? null : meta.created
- }
-
- return (
-
- );
+ return ;
}
export const getStaticProps = async ({ params }) => {