diff --git a/site/components/MDX.js b/site/components/MDX.js index a52b756b..650c15f8 100644 --- a/site/components/MDX.js +++ b/site/components/MDX.js @@ -5,6 +5,7 @@ import { YOUTUBE_REGEX } from "../lib/constants"; import siteConfig from "../config/siteConfig"; import MdxContent from './MdxContent' import useHeadingsObserver from '../hooks/useHeadingsObserver' +// import dynamic from 'next/dynamic' // import { Paragraph } from "./Paragraph"; // import { Anchor } from "./Anchor"; @@ -15,11 +16,11 @@ import useHeadingsObserver from '../hooks/useHeadingsObserver' // const Paragraph = dynamic(() => import("./Paragraph").then(mod => mod.Paragraph)) -export default function MdxPage({ body, frontMatter, editUrl }) { +export default function MdxPage({ body, frontMatter }) { const observer = useHeadingsObserver(); const { - title, description, date, authors, youtube, podcast, image, _raw + title, description, date, keywords, youtube, podcast, image, _raw } = frontMatter let youtubeThumnbnail; diff --git a/site/pages/[...slug].js b/site/pages/[...slug].js index b2754d42..8b422b2f 100644 --- a/site/pages/[...slug].js +++ b/site/pages/[...slug].js @@ -10,13 +10,8 @@ export default function Page({ body, ...meta }) { created: meta.created === "Invalid Date" ? null : meta.created } - // enable editing content only for claims, concepts, and guide for now - const editUrl = ['claims', 'concepts', 'guide'].includes(meta._raw.sourceFileDir) - ? siteConfig.repoRoot + siteConfig.repoEditPath + meta._raw.sourceFilePath - : null - return ( - + ); }