-
Notifications
You must be signed in to change notification settings - Fork 25.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to disable left sidebar in single layout #1322
Comments
Have a search through the closed issues for things like "grid", "layout", "wide", etc. I've covered this numerous times before with detailed directions on the Sass you need to modify to widen the main content container. |
Thank you, indeed I must have been blind. If anybody is interested following changes did the job: |
Looks like lots of people are looking to do this. Maybe we could add a enable/disable sidebar feature. |
indeed.. an "full-wide" class to be used when the author left column is disabled. |
For anyone coming here from google like I did, I just copied the article.page {
float: left;
width: 100%;
} And changed my _config.yml defaults to not show author_profile on posts (
And now my article posts are "full wide" @mmistakes, your documentation https://mmistakes.github.io/minimal-mistakes/docs/stylesheets/ says you have to copy the complete _sass folder, however I just changed the one file and it seems to all be working fine with Github Pages and Jekyll 3.8.5. Is this information still accurate? |
@JustinGrote How you've done it is correct since you are overriding the main file that imports all the partials. The only reason I mentioned copying the entire The way you've done it is the preferred way since you're only touching one file. It's the same issue where people fork the entire theme and then it's instantly out of date and hard to manage updates. |
Thanks. .wide2 {
.page {
float: left;
width: 100%;
@include breakpoint($large) {
padding-left: 0;
}
@include breakpoint($x-large) {
padding-left: 0;
}
}
.page__related {
@include breakpoint($large) {
padding-left: 0;
}
@include breakpoint($x-large) {
padding-left: 0;
}
}
} |
@wiloo82 Yes that info is correct. The preferred way of installing the theme is as a gem (or I'm guessing you forked the theme, which is why you were able to simply update the one file. This is fine, just more work as you'll have to make sure you're always in sync with the them going forward and pull in any changes I make in the future. If you install as a |
Thanks, I did install it as a remote theme and added a _sass folder to override this specifc classes: wide2. |
- took a lot of circuitous searching on https://github.com/mmistakes/minimal-mistakes/issues - finally found mmistakes/minimal-mistakes#1322 (comment) - some additional customization with the padding
Page width fix from mmistakes/minimal-mistakes#1322
add a wide2 class to disable sidebar (solution from mmistakes/minimal-mistakes#1322 (comment))
[x] This is a question about using the theme.
Environment informations
Expected behavior
I'd like to remove the left column in single page layout whatsoever. I know that it's possible by removing author's bio etc. but then page content is really narrow. What I would like to achieve is to have "2 columns" - left, wider for ~2/3 of the page width for an article and right where toc is being inserted. How can I achieve such behaviour?
I've been fiddling with scss - I've been able to achieve it on some resolutions (mobile, x-large), but other looked just bad :( (large, 4k).
The text was updated successfully, but these errors were encountered: