Use different wrapperComponent for different routes? #119
Unanswered
michelleenos
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I'm using the
wrapperComponent
option as shown in the options here. But I want to use different components for different routes (in one child route, the .md components are displayed in a modal-type thing, in another they are just like a generic blog post, etc).Is this possible? I am using vite-plugin-pages as well, and I did find that I can use the
extendRoute
option there to conditionally add acomponent
option, but that doesn't offer the feature of having access to both the markdown frontmatter and content in a<slot>
likewrapperComponent
does.Beta Was this translation helpful? Give feedback.
All reactions