We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Code for sidebar in left (for PC) and in bottom (for mobile) is duplicated.
bundler-site/source/layouts/commands_layout.haml
Lines 17 to 31 in 5fa3ce7
and
bundler-site/source/layouts/md_guides_layout.haml
Lines 19 to 33 in 5fa3ce7
bundler-site/assets/stylesheets/_sidebar.scss
Lines 19 to 148 in 5fa3ce7
Lines 156 to 225 in 5fa3ce7
The text was updated successfully, but these errors were encountered:
Unifying commands_layout.haml and md_guides_layout.haml looks easy:
commands_layout.haml
md_guides_layout.haml
$ diff -u source/layouts/commands_layout.haml source/layouts/md_guides_layout.haml --- source/layouts/commands_layout.haml 2022-07-15 04:49:57.000000000 +0000 +++ source/layouts/md_guides_layout.haml 2022-07-15 04:49:57.000000000 +0000 @@ -1,3 +1,5 @@ +- v = current_page.url.scan(/v\d\.\d+/).first || current_version + - if /v\d\.\d+\//.match(current_page.destination_path) - content_for(:canonical, commands_toplevel_path(current_page.destination_path)) @@ -16,10 +18,11 @@ style: 'max-width: 400px;' .container .row.flex-column.flex-md-row-reverse - #page-content-wrapper.col-12.col-md-9.commands.contents + #page-content-wrapper.col-12.col-md-9.guide.contents ~ yield #sidebar-wrapper.col-12.col-md-3.mt-4 .sidebar-nav - = partial 'partials/commands_sidebar' + %h4 Guides + = partial 'partials/guides_sidebar' - = javascript_include_tag 'commands_layout.min' + = javascript_include_tag 'anchors.min'
Sorry, something went wrong.
All done in #659 and #752 🎉
tnir
Successfully merging a pull request may close this issue.
Code for sidebar in left (for PC) and in bottom (for mobile) is duplicated.
HAML (HTML)
bundler-site/source/layouts/commands_layout.haml
Lines 17 to 31 in 5fa3ce7
and
bundler-site/source/layouts/md_guides_layout.haml
Lines 19 to 33 in 5fa3ce7
CSS (SCSS)
bundler-site/assets/stylesheets/_sidebar.scss
Lines 19 to 148 in 5fa3ce7
and
bundler-site/assets/stylesheets/_sidebar.scss
Lines 156 to 225 in 5fa3ce7
Resources
The text was updated successfully, but these errors were encountered: