Multi-Part Posts with Nested Routing
Introduction
This feature allows grouping of related content, such as a multi-part course, under a single route structure. This post demonstrates nested routing in action. The blog template supports organizing posts within nested sub-folders, ideal for grouping related content, such as a multi-part series. This post itself is an example, located in the /data/article/en/nested-route
folder.
How It Works
To create nested routes, simply organize your .md
/ .mdx
files in multiple sub-folders within the main /data/article directory
. For example, you can have /data/article/en/nested-route/deeply-nested-route/my-post.md
.
Routing and path creation are managed using Next.js catch-all routes.
Use Cases
Here are some scenarios where nested routes are beneficial:
- Logical content organization: Posts are displayed by date but grouped logically.
- Multi-part series: Easily manage and navigate through related posts.
- Author-specific sub-routes: Organize posts by different authors.
Community
We're excited to see the community adopt Hyperse-io, raise issues, and provide feedback. Whether it's a feature request, bug report, or a project to showcase, please get involved!