Contentlayer is used to create an MDX compatible
blog. It allows you to easily write blogs to boost your SEO.
Writing blogs
You’ll find an example using various MDX components already present in the
/blogs
folder.- Create a new .mdx file in the folder
/blog
- Include the following metadata at the top of the file
- Start writing your blog!
Structure
app/blog/*
: front-end logic/blog/*
/ your articles go herecomponents/blog/*
: MDX components usedcontentlayer.config.ts
: contentlayer config file