diff --git a/website/helpers/sidebar_helpers.rb b/website/helpers/sidebar_helpers.rb index 124a7c53c..ef74de49c 100644 --- a/website/helpers/sidebar_helpers.rb +++ b/website/helpers/sidebar_helpers.rb @@ -3,7 +3,7 @@ module SidebarHelpers # if the YAML frontmatter matches the expected value. def sidebar_current(expected) current = current_page.data.sidebar_current || "" - if current.start_with?(expected) + if current == expected or (expected.is_a?(Regexp) and expected.match(current)) return " class=\"active\"" else return "" diff --git a/website/source/layouts/atlas.erb b/website/source/layouts/atlas.erb index 65e1241b7..8df8365e3 100644 --- a/website/source/layouts/atlas.erb +++ b/website/source/layouts/atlas.erb @@ -10,7 +10,7 @@ Atlas Provider - > + > Resources