|
1 |
| -<div id="td-sidebar-menu" class="td-sidebar__inner"> |
| 1 | +<div id="td-sidebar-menu" class="td-sidebar__inner"> |
| 2 | + |
2 | 3 | <form class="td-sidebar__search d-flex align-items-center">
|
3 |
| - <input type="search" class="form-control td-search-input" placeholder=" Search this site…" aria-label="Search this site…" autocomplete="off"> |
4 |
| - <button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type="button" data-toggle="collapse" data-target="#td-section-nav" aria-controls="td-docs-nav" aria-expanded="false" aria-label="Toggle section navigation"> |
5 |
| - </button> |
| 4 | + <input type="search" class="form-control td-search-input" placeholder=" Search this site…" aria-label="Search this site…" autocomplete="off"> |
| 5 | + <button class="btn btn-link td-sidebar__toggle d-md-none p-0 ml-3 fas fa-bars" type="button" data-toggle="collapse" data-target="#td-section-nav" aria-controls="td-docs-nav" aria-expanded="false" aria-label="Toggle section navigation"> |
| 6 | + </button> |
6 | 7 | </form>
|
| 8 | + |
7 | 9 | <nav class="collapse td-sidebar-nav pt-2 pl-4" id="td-section-nav">
|
8 |
| -{% for section in site.data.toc %}<ul class="td-sidebar-nav__section pr-md-3"> |
9 |
| - {% capture sectionUrl %}{{ section.url | replace: "/", "" }}{% endcapture %} |
10 |
| - {% capture pageUrl %}{{ page.url | replace: "/", "" }}{% endcapture %} |
11 |
| - <li class="td-sidebar-nav__section-title"> |
12 |
| - <a href="{% if section.url %}{{ site.baseurl }}/{{ section.url }}{% else %}{{ section.external_url }}{% endif %}" class="align-left pl-0 pr-2 active td-sidebar-link td-sidebar-link__section">{{ section.title }}</a> |
13 |
| - </li>{% if section.links %}<ul> |
14 |
| - <li class="collapse show" id="{{ section.title | slugify }}"> |
15 |
| - <ul class="td-sidebar-nav__section pr-md-3">{% for entry in section.links %} |
16 |
| - <li class="td-sidebar-nav__section-title"> |
17 |
| - <a href="{% if entry.url %}{{ site.baseurl }}/{{ entry.url }}{% else %}{{ entry.external_url }}{% endif %}" class="align-left pl-0 pr-2 td-sidebar-link td-sidebar-link__section">{{ entry.title }}</a> |
18 |
| - </li> |
19 |
| - {% if page.url contains entry.url or pageUrl == sectionUrl %} |
20 |
| - <ul><li class="collapse show" id="{{ child.title | slugify }}">{% if entry.children %} |
21 |
| - {% for child in entry.children %}<a class="td-sidebar-link td-sidebar-link__page " id="m-{{ section.title | slugify }}-{{ entry.title | slugify }}-{{ child.title | slugify }}" href="{% if child.url %}{{ site.baseurl }}/{{ child.url }}{% else %}{{ child.external_url }}{% endif %}">{{ child.title }}</a>{% endfor %} |
22 |
| - {% endif %}</li></ul>{% endif %}{% endfor %} |
23 |
| - </ul>{% endif %}{% endfor %} |
| 10 | + {% for section in site.data.toc %} |
| 11 | + <ul class="td-sidebar-nav__section pr-md-3"> |
| 12 | + {% capture sectionUrl %} |
| 13 | + {{ section.url | replace: "/", "" }} |
| 14 | + {% endcapture %} |
| 15 | + {% capture pageUrl %} |
| 16 | + {{ page.url | replace: "/", "" }} |
| 17 | + {% endcapture %} |
| 18 | + |
| 19 | + <li class="td-sidebar-nav__section-title"> |
| 20 | + <a href="{% if section.url %}{{ site.baseurl }}/{{ section.url }}{% else %}{{ section.external_url }}{% endif %}" class="align-left pl-0 pr-2 active td-sidebar-link td-sidebar-link__section">{{ section.title }}</a> |
| 21 | + </li> |
| 22 | + {% if section.links %} |
| 23 | + <ul> |
| 24 | + <li class="collapse show" id="{{ section.title | slugify }}"> |
| 25 | + <ul class="td-sidebar-nav__section pr-md-3"> |
| 26 | + {% for entry in section.links %} |
| 27 | + <li class="td-sidebar-nav__section-title"> |
| 28 | + <a href="{% if entry.url %} |
| 29 | + {{ site.baseurl }}/{{ entry.url }} |
| 30 | + {% else %} |
| 31 | + {{ entry.external_url }} |
| 32 | + {% endif %}" |
| 33 | + class="align-left pl-0 pr-2 td-sidebar-link td-sidebar-link__section">{{ entry.title }} |
| 34 | + </a> |
| 35 | + </li> |
| 36 | + {% if page.url contains entry.url or pageUrl == sectionUrl %} |
| 37 | + <ul> |
| 38 | + <li class="collapse show" id="{{ child.title | slugify }}"> |
| 39 | + {% if entry.children %} |
| 40 | + {% for child in entry.children %} |
| 41 | + <a class="td-sidebar-link td-sidebar-link__page " id="m-{{ section.title | slugify }}-{{ entry.title | slugify }}-{{ child.title | slugify }}" href="{% if child.url %}{{ site.baseurl }}/{{ child.url }}{% else %}{{ child.external_url }}{% endif %}">{{ child.title }}</a>{% endfor %} |
| 42 | + {% endif %} |
| 43 | + </li> |
| 44 | + </ul> |
| 45 | + {% endif %} |
| 46 | + {% endfor %} |
| 47 | + </ul> |
| 48 | + </li> |
| 49 | + </ul> |
| 50 | + {% endif %} |
| 51 | + </ul> |
| 52 | + {% endfor %} |
24 | 53 | </nav>
|
25 | 54 | </div>
|
0 commit comments