Skip to content

Commit

Permalink
Always open all the sidebar menu (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
shifucun authored Sep 15, 2023
1 parent 6cb5af5 commit c2ecd7c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
<details class="parent" {% if node.open %}open{% endif %}>
<details class="parent" open>
<summary>
<a href="{{ node.url }}" class="{% if page.url == node.url %} active{% endif %}">{{ node.title }}</a>
{% if node.has_children %}{{ caret }}{% endif %}
Expand Down
1 change: 0 additions & 1 deletion api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ layout: default
title: API
nav_order: 20
has_children: true
open: true
---
# Overview

Expand Down
1 change: 0 additions & 1 deletion courseware/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ layout: default
title: Courseware
nav_order: 60
has_children: true
open: true
---

# Courseware
Expand Down

0 comments on commit c2ecd7c

Please sign in to comment.