Published on

How to Write Blogs Here in MDX

Authors

Writing blogs here requires using MDX (Markdown and JSX) format. We also need to put the files in @/data/blog/ folder. We may use nested routing or organize the blogs in folders such as finance or maybe dev.

But the filename must end with .mdx. For example, @/data/blog/blog-title.mdx and @/data/blog/finance/blog-title.mdx are both valid blogs.

Putting the files under category based folders is useful as it will allow us to organize the blogs better.

Blog Title & Date

To add the blog title and date, we would use the following format:

---
title: "How to Write Blogs Here in MDX"
date: "2025-01-09"
---