@@ -20,31 +20,54 @@
2020 {% set index = get_section(path="docs/_index.md") %}
2121 {% for s in index.subsections %}
2222 {% set subsection = get_section(path=s) %}
23− <details class="mt1">
23+ <details {% if current_url is containing(subsection.path) %}
24+ open
25+ {% endif %}
26+ class="mt1">
2427 <summary>{{ subsection.title }}</summary>
2528 {% if subsection.pages %}
2629 {% for page in subsection.pages %}
2730 <li class="ml2 mt1">
28− <a href="{{ page.permalink}}">
31+ <a
32+ {% if current_url == page.permalink %}
33+ class="fw6"
34+ {% endif %}
35+ href="{{ page.permalink }}">
2936 {{ page.title }}
3037 </a>
3138 </li>
3239 {% endfor %}
3340 {% for y in subsection.subsections %}
3441 {% set subsubsection = get_section(path=y) %}
35− <details class="ml2 mt1">
42+ <details {% if current_url is containing(subsubsection.path) %}
43+ open
44+ {% endif %}
45+ class="ml2 mt1">
3646 <summary>{{ subsubsection.title }}</summary>
3747 {% if subsubsection.pages %}
3848 {% for page in subsubsection.pages %}
39− <li class="ml2 mt1"><a href="{{ page.permalink }}">{{ page.title }}</a></li>
49+ <li class="ml2 mt1">
50+ <a
51+ {% if current_url == page.permalink %}
52+ class="fw6"
53+ {% endif %}
54+ href="{{ page.permalink }}">{{ page.title }}</a></li>
4055 {% endfor %}
4156 {% for x in subsubsection.subsections %}
4257 {% set subsubsubsection = get_section(path=x) %}
43− <details class="ml2 mt1">
58+ <details {% if current_url is containing(subsubsubsection.path) %}
59+ open
60+ {% endif %}
61+ class="ml2 mt1">
4462 <summary>{{ subsubsubsection.title }}</summary>
4563 {% if subsubsubsection.pages %}
4664 {% for page in subsubsubsection.pages %}
47− <li class="ml2 mt1"><a href="{{ page.permalink }}">{{ page.title }}</a></li>
65+ <li class="ml2 mt1">
66+ <a
67+ {% if current_url == page.permalink %}
68+ class="fw6"
69+ {% endif %}
70+ href="{{ page.permalink }}">{{ page.title }}</a></li>
4871 {% endfor %}
4972 {% endif %}
5073 </details>