-
Notifications
You must be signed in to change notification settings - Fork 0
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
add homepage layout and styles #30
Conversation
} | ||
|
||
/* Hide sidebar, a.anchor */ | ||
html[data-layout="landing"] .toc.sidebar, | ||
html[data-layout="landing"] .toc.embedded, | ||
html[data-layout="landing"] .breadcrumbs, | ||
html[data-layout="landing"] a.anchor { | ||
html[data-layout="landing"] a.anchor, | ||
html[data-layout="full"] .nav-container, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can keep this as is for now since there will be a demo soon, but I'd like to see these elements not rendered with logic in the handlebars templates rather than hidden via CSS. I think having the handlebars templates act as the building blocks and rendering logic is much more organized than hiding elements like this as the css tends to get chaotic after a while and it's hard to understand why certain elements are shown/hidden. It also saves a little time on the client by simply not rendering the elements vs rendering and then hiding.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback! I noticed a few caveats with handlebars template for some js and hide it with css in the meantime. I will resolve and use handlebars templates in the next PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok for now, but I'd like to see the various elements not rendered with logic in the handlebars rather than hidden with CSS. That can be done in a new branch later
Homepage layout
page-layout: full