Skip to content
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

Easy config option for showing sidebar by default? #25

Closed
daguar opened this issue Mar 9, 2014 · 2 comments
Closed

Easy config option for showing sidebar by default? #25

daguar opened this issue Mar 9, 2014 · 2 comments

Comments

@daguar
Copy link

daguar commented Mar 9, 2014

I've been looking through the CSS (I'm not much of a front-end guy) and was wondering if there is an easy way to make the sidebar ("drawer") visible by default.

Is there a simple way to do this with a CSS tweak?

It seems like this would be a great thing to make an documented config option, and I'm happy to PR the README if anyone has some direction on how to go about it.

This is an excellent, beautiful theme -- thanks so much for building it!

@matiassingers
Copy link

@daguar it's actually quite simple to show the sidebar by default in Lanyon.
The sidebar/drawer is triggered by a simple checkbox found in the top of _includes/sidebar.html, to show the sidebar by default simply add the boolean checked to the element:

<input type="checkbox" class="sidebar-checkbox" id="sidebar-checkbox" checked>

This will of course still push the content to the right, but the sidebar will be shown by default. ✔️

@mdo
Copy link
Member

mdo commented Mar 30, 2014

Yeah, what @matiassingers said works fine. However, if you want a sidebar visible all the time without moving the content, check out Hyde.

@mdo mdo closed this as completed Mar 30, 2014
geekpradd pushed a commit to geekpradd/geekpradd.github.io that referenced this issue May 15, 2021
The step in the deploy script that deletes almost all files except for _site/ was causing issues if you have a custom domain name. GitHub pages requires a CNAME, so I added this to the list of files not to delete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants