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

feat: ✨ add choice of position for the sidebar #359

Merged
merged 1 commit into from Jul 4, 2023

Conversation

philippart-s
Copy link
Contributor

Proposition to enable the choice of the position of the sidebar : left or right πŸ˜‰

@sharu725
Copy link
Owner

sharu725 commented Jun 20, 2023

This is a nice addition @philippart-s. I'm not quite sure if this is backwards compatible.

What would happen if someone has not set position

sidebar:
   position: left

@@ -4,5 +4,15 @@

@charset "utf-8";


// define variable with front matter
{% if site.data.data.sidebar.position == 'left' %}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sharu725 I think in the case sidebar.position is not defined, this would be false, and the sidebar is going to be on the right side πŸ€”

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with you, I will test ASAP to be sure ;)

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right @nelsonmestevao. Let me test on my site as well.

@philippart-s
Copy link
Contributor Author

This is a nice addition @philippart-s. I'm not quite sure if this is backwards compatible.

What would happen if someone has not set position

sidebar:
   position: left

Hi @sharu725,

I've tested and if the option is not set then the sidebar is displayed to the right πŸ˜‰

Copy link
Owner

@sharu725 sharu725 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sharu725 sharu725 merged commit 80eb73d into sharu725:master Jul 4, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants