From e367c0ef29cb7932a9d1212c60e72444fbfb925a Mon Sep 17 00:00:00 2001 From: Lea Verou Date: Mon, 13 Jan 2025 18:13:54 -0500 Subject: [PATCH] Open sidebar group on overview pages, fixes #507 --- docs/_includes/sidebar-group.njk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_includes/sidebar-group.njk b/docs/_includes/sidebar-group.njk index 095956705..cd8332013 100644 --- a/docs/_includes/sidebar-group.njk +++ b/docs/_includes/sidebar-group.njk @@ -1,8 +1,8 @@ {# Some collections (like "patterns") will not have any items in the alpha build for example. So this checks to make sure the collection exists. #} {% if collections[tag] -%} - + {% set groupUrl %}/docs/{{ tag }}/{% endset %} +

- {% set groupUrl %}/docs/{{ tag }}/{% endset %} {% if groupUrl | getCollectionItemFromUrl %} {{ title or (tag | capitalize) }}