Simple Next.js + MDX based blog starter template.
- clone this repository and run
yarn install
- Start writing your blog in MDX in
/pages/blogs
- Each MDX file will automatically turn into a new page like normal Next.js page
This project uses Theme UI so please follow Theme UI documentation
to customise your theme. There is a base theme defined in /theme-ui/theme.js
Thanks to next-mdx-enhanced you can define
a layout for your blog. There is an example in /layouts/BlogLayout.js
## MDX Component
You can define your own MDX component or override it in /theme-ui/mdxComponents.js
You may define your document title, description or metadatas by using Front Matter format in your MDX file. You may also want to edit your layout file to map more metadata there.