Skip to content

Add sidebar layouts - #951

Merged
MakisH merged 3 commits into
precice:hugofrom
MuhammadAashirAslam:partials-sidebar
Aug 9, 2026
Merged

Add sidebar layouts#951
MakisH merged 3 commits into
precice:hugofrom
MuhammadAashirAslam:partials-sidebar

Conversation

@MuhammadAashirAslam

@MuhammadAashirAslam MuhammadAashirAslam commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

This PR migrates the sidebar navigation files to Hugo partial layouts. It handles the structure, check for active items, and recursive rendering of the side menu to match the new site structure.
Short description of the files:

  • layouts/partials/sidebar.html: Selects the page sidebar data and starts rendering the navigation tree.
  • layouts/partials/sidebar_is_web.html: Checks whether a sidebar item is enabled for web output.
  • layouts/partials/sidebar_item_active.html: Recursively determines whether a sidebar branch contains the current page.
  • layouts/partials/sidebar_page_matches_url.html: Matches a page against its permalink, URL, and aliases.
  • layouts/partials/sidebar_recursive.html: Recursively renders sidebar leaves and Bootstrap collapse branches.
  • layouts/partials/sidebar_resolve_url.html: Preserves external URLs and resolves internal URLs with relURL.
  • layouts/partials/sidebar_url_clean.html: Normalizes URLs before sidebar comparisons.

@MakisH MakisH left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

With a quick sanity check, this looks fine, and on the testing website the sidebars seem to work fine (assuming that the build is a bit outdated - the CalculiX adapter page "Building on SuperMUC" should not exist anymore since #962).

Does this already address #586 completely?

@MakisH MakisH added the technical Technical issues on the website label Aug 6, 2026
@MakisH
MakisH merged commit 038d5b7 into precice:hugo Aug 9, 2026
1 of 2 checks passed
@github-project-automation github-project-automation Bot moved this from Needs review to Done in GSoC 2026: Website modernization Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

technical Technical issues on the website

Development

Successfully merging this pull request may close these issues.

2 participants