-
Hey developers & contributors, I know this need may seem peculiar. The scenario is that I'm building a blog theme based on VitePress, and I want to adopt VitePress's built-in features as much as possible. That is, I need the Prev/Next links generated by VitePress, but I don't want the sidebar being shown because it doesn't look right for my blog theme. Thanks. 🙏🏻 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I guess that's impossible currently. Some workaround: https://github.com/Octobug/blog/blob/main/.vitepress/theme/components/PrevNext.vue |
Beta Was this translation helpful? Give feedback.
-
Sidebar can be hidden but it needs to write |
Beta Was this translation helpful? Give feedback.
If you want to set it on all pages/most of the pages you can do it using transformPageData hook in config. You won’t need to write it on every page.