The blog template supports posts in nested sub-folders. This helps in organisation and can be used to group posts of similar content e.g. a multi-part series. This post is itself an example of a nested route! It's located in the
Simplify create multiple folders inside the main
/data/blog folder and add your
.mdx files to them. You can even create something like
We use Next.js catch all routes to handle the routing and path creations.
Here's some reasons to use nested routes