How can I structure my blog posts in a separate blog
folder?
#10038
-
I am working on a blog using Remix and MDX, inspired by this repository. I want to achieve better separation between my blog posts and the rest of the app. My goal is to place all blog
I looked into using the remix-flat-routes package to achieve this clean structure but couldn’t figure out how to do it. Does anyone have a suggestion or know if this package can support my use case? According to the remix-routing demo, this could be achieved in v1. Thanks in advance for any insights! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I had a similar issue and resolved using |
Beta Was this translation helpful? Give feedback.
-
For nested routing with |
Beta Was this translation helpful? Give feedback.
For nested routing with
remix-flat-routes
, just name the folder toblog+
, otherwise you'd need to update every file withblog.
prefix (e.g,blog.introduction.mdx
)