Skip to content

Commit

Permalink
Update sidebar.html
Browse files Browse the repository at this point in the history
  • Loading branch information
brunochanrio authored May 15, 2024
1 parent 4b5dd2e commit 236ad6d
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
<li class="md-nav__item md-nav__item--active">
<a class="md-nav__link md-nav__link--active" href="{{ site.baseurl }}/" title="Home">Home</a>
</li>
<li class="md-nav__item" style="display:none">
<input class="md-toggle md-nav__toggle" data-md-toggle="toc" id="__toc" type="checkbox">
<label class="md-nav__link" for="__toc" type="toc">{{ section.title }}</label>
<nav class="md-nav md-nav--secondary">

</nav>
</li>
{% for section in site.data.toc %}
<li class="md-nav__item">

Expand Down Expand Up @@ -43,13 +50,25 @@
</div>
</div>
</div>
<div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--secondary">
<label class="md-nav__title" for="__toc">Table of Contents</label>
<ul id="nav-toc" class="md-nav__list" data-md-scrollfix="">
<!-- toc will be appended here!-->
</ul>
</nav>
</div>
</div>
</div>
{% for section in site.data.toc %}
{% if section.children %}
<div class="md-sidebar md-sidebar--secondary" data-md-component="toc">
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--secondary" id="{{ section.title | slugify }}">
<label class="md-nav__title" for="__toc-{{ section.title | slugify }}">Table of Contents</label>
<label class="md-nav__title" for="__toc-{{ section.title | slugify }}"> </label>
<ul id="nav-toc" class="md-nav__list" data-md-scrollfix="">
<!-- toc will be appended here!-->
</ul>
Expand Down

0 comments on commit 236ad6d

Please sign in to comment.