From c2ecd7c5c90195ecfe8dfed5e6345665e7737a8b Mon Sep 17 00:00:00 2001 From: Bo Xu Date: Fri, 15 Sep 2023 19:06:29 +0000 Subject: [PATCH] Always open all the sidebar menu (#362) --- _includes/sidebar.html | 4 ++-- api/index.md | 1 - courseware/index.md | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/_includes/sidebar.html b/_includes/sidebar.html index 027e322e5..3ff8a4e5a 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -11,9 +11,9 @@ {%- assign sorted_unordered_pages_list = unordered_pages_list | sort: "title" -%} {%- assign pages_list = sorted_ordered_pages_list | concat: sorted_unordered_pages_list -%} {%- for node in pages_list -%} - {%- if node.nav_exclude != true || node.open -%} + {%- if node.nav_exclude != true -%} {%- if node.parent == nil and node.title -%} -
+
{{ node.title }} {% if node.has_children %}{{ caret }}{% endif %} diff --git a/api/index.md b/api/index.md index c548eeb5e..14a3981e0 100644 --- a/api/index.md +++ b/api/index.md @@ -3,7 +3,6 @@ layout: default title: API nav_order: 20 has_children: true -open: true --- # Overview diff --git a/courseware/index.md b/courseware/index.md index 41d721599..e4a39103d 100644 --- a/courseware/index.md +++ b/courseware/index.md @@ -3,7 +3,6 @@ layout: default title: Courseware nav_order: 60 has_children: true -open: true --- # Courseware