Skip to content

Hide sidebar when no section matches current page#4

Merged
ronaldtse merged 1 commit intomainfrom
fix/conditional-sidebar
May 6, 2026
Merged

Hide sidebar when no section matches current page#4
ronaldtse merged 1 commit intomainfrom
fix/conditional-sidebar

Conversation

@ronaldtse
Copy link
Copy Markdown
Contributor

Pages without a matching sidebar section (e.g. appendix/standalone pages) now render without the empty sidebar container, backdrop, or mobile toggle. The article takes full width via the .no-sidebar class.

Changes:

  • _layouts/default.html: Conditionally render sidebar/backdrop only when a section matches the current URL
  • _sass/calconnect/_layout.scss: Add .documentation.no-sidebar > article rule to remove max-width constraint
  • Bumps version to 0.4.0

Pages without a matching sidebar section (e.g. appendix pages) now
render without the empty sidebar container, backdrop, or mobile toggle.
The article takes full width via the .no-sidebar class.

Bumps version to 0.4.0.
@ronaldtse ronaldtse force-pushed the fix/conditional-sidebar branch from 4460c2e to 7bd8252 Compare May 6, 2026 05:04
@ronaldtse ronaldtse merged commit d9bc8e6 into main May 6, 2026
2 checks passed
@ronaldtse ronaldtse deleted the fix/conditional-sidebar branch May 6, 2026 05:04
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.

1 participant