diff --git a/docs/_includes/nav-docs.html b/docs/_includes/nav-docs.html index 005f96435a0f..2b44c8acc750 100644 --- a/docs/_includes/nav-docs.html +++ b/docs/_includes/nav-docs.html @@ -4,36 +4,33 @@ + {% assign page_slug = page.url | split: '/' | last %} {% for group in site.data.nav %} {% assign link = group.pages | first %} - {% assign slug = group.title | downcase | replace: ' ', '-' || page.title | downcase | replace: ' ', '-' %} + {% assign link_slug = link.title | slugify %} + {% assign group_slug = group.title | slugify %} {% assign active = nil %} - {% if page.url contains slug %} + {% if page.group == group_slug %} {% assign active = 'active' %} {% endif %} - {% if slug == "examples" %} - - {% else %} - - {% endif %} + {{ group.title }} {% for doc in group.pages %} - {% assign slug = doc.title | downcase | replace: ' ', '-' | replace:'-&-','-' %} - {% capture slug %}/{{ slug }}{% endcapture %} + {% assign doc_slug = doc.title | slugify %} {% assign active = nil %} - {% if page.url contains slug %} + {% if page.group == group_slug and page_slug == doc_slug %} {% assign active = 'active bd-sidenav-active' %} {% endif %} - + {{ doc.title }} diff --git a/docs/utilities/borders.md b/docs/utilities/borders.md index 1eb716c1f9c6..1f092c36afbc 100644 --- a/docs/utilities/borders.md +++ b/docs/utilities/borders.md @@ -2,6 +2,7 @@ layout: docs title: Borders group: utilities +redirect_from: "/utilities/" --- Use border utilities to quickly style the `border` and `border-radius` of an element. Great for images, buttons, or any other element.