Markdown Files
How works blog and docs.
The project includes a blog and documentation built using Contentlayer and MDX.
Contentlayer
Contentlayer is a Markdown-based CMS that's flexible and extensible. It lets you organize content using Markdown files and offers a straightforward API for accessing data in your app.
You can create reusable data models for various content types like blog posts, docs, and pages with Contentlayer.
Frontmatter in Markdown files allows you to define metadata such as title, description, authors, and images, simplifying content management.
contentlayer.config.js
Here's an example of a contentlayer.config.js
file to configure Contentlayer in your project:
This file configures Contentlayer to look for Markdown files in the specified directories (content/blog
, content/authors
, content/docs
, content/guides
, content/pages
). It also defines the different document types you use in your project along with the fields associated with each document type.
You can customize this file according to your project's needs by adding new document types or adjusting existing fields as per your specific requirements.
Frontmatters
Here's the list of all frontmatters available for each parts: