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

Determine active page by considering parent too #19

Merged
merged 1 commit into from
May 1, 2018

Commits on Apr 30, 2018

  1. Determine active page by considering parent too

    Currently the logic that works out which page to highlight as ‘active’
    in the top navigation is quite naïve (only compares URLs directly).
    
    This commit makes it a bit smarter so that a page can define its
    `parent`, then the navigation will highlight the matching ‘parent’
    navigation item.
    
    Adapted from: alphagov/govuk-developer-docs@7e5ac51
    quis committed Apr 30, 2018
    Configuration menu
    Copy the full SHA
    a2f5a12 View commit details
    Browse the repository at this point in the history