diff --git a/layouts/MDXLayout.tsx b/layouts/MDXLayout.tsx index afe12f9..e324633 100644 --- a/layouts/MDXLayout.tsx +++ b/layouts/MDXLayout.tsx @@ -1,11 +1,14 @@ import { FC } from 'react'; import dynamic from 'next/dynamic'; +import { MyMatters } from 'types'; // import { renderToString } from 'react-dom/server'; const Footer = dynamic(() => import('components/Footer')); const HeadBar = dynamic(() => import('components/NavBar')); -const MainLayout: FC = ({ children }) => { +interface Props extends MyMatters {} + +const MainLayout: FC = ({ title, date, children }) => { // const contentString = renderToString(children as any); // const getHeadings = (source: string) => { @@ -35,7 +38,13 @@ const MainLayout: FC = ({ children }) => {
- {children} +
+

{title}

+ + + + {children} +