Any way to hide the left sidebar? #1108
-
What version of
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 14 replies
-
|
The ---
title: Page without sidebars
template: splash
---It does also hide the right sidebar/table of contents though. Were you hoping to keep that? |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
|
In addition to the template: splash option delucis mentioned: ---
title: Page without sidebars
template: splash
---I added a custom stylesheet with: html:not([data-has-toc]) {
--sl-content-width: 45rem !important;
} |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Considering many suggestions have been listed to handle this use case, either with a different template, CSS-solutions, or even plugins, depending on the desired outcome, I'll close this discussion for now. |
Beta Was this translation helpful? Give feedback.
-
|
Would starlight be open to a PR that makes having a collapsible sidebar part of the codebase, it can be similar to https://windmillcode.github.io/starlight-fullview-mode/ mentioned above, but with design that looks more coherent to the codebase. We could develop our own plugin, but plugins do become harder and harder to maintain with more and more upstream changes and this feels like a feature that would be beneficial for all users (not a niche use case which warrants this to be limited to a plugin). |
Beta Was this translation helpful? Give feedback.
The
template: splashoption hides the left sidebar:It does also hide the right sidebar/table of contents though. Were you hoping to keep that?