You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
538 B

import ReactMarkdown from "react-markdown";
import matter from "gray-matter";
import Page from "../components/Page";
const Index = (props) => {
return (
<Page siteTitle="Garrit's Site">
<ReactMarkdown source={props.markdownBody} />
</Page>
);
};
export async function getStaticProps() {
const content = await import(`../content/index.md`);
const data = matter(content.default);
return {
props: {
markdownBody: data.content,
},
};
}
export default Index;