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 7, 2024
1 parent 495ba11 commit 3dfa16c
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@

<nav class="md-nav md-nav--secondary">
<label class="md-nav__title" for="__toc">Table of contents</label>
<ul class="md-nav__list" data-md-scrollfix="">
{% for section in site.data.toc %}
<li class="md-nav__item">
<a class="md-nav__link" href="{% if section.external_url %}{{ section.external_url }}{% else %}{{ site.baseurl }}/{{ section.url }}{% endif %}"
id="pancakes-{{ section.title | slugify }}"
title="{{ section.title }}">{{ section.title }}</a>
</li>
{% endfor %}
</ul>
<a class="md-nav__link pancakes-parent" {% if section.children %}href="#pancakes-{{ section.title | slugify }}"{% else %}href="{% if section.external_url %}{{ section.external_url }}{% else %}{{ site.baseurl }}/{{ section.url }}{% endif %}"{% endif %}
id="pancakes-{{ section.title | slugify }}"
title="{{ section.title }}">{{ section.title }}</a>
{% if section.children %}<nav class="md-nav">
<ul class="md-nav__list">
{% for child in section.children %}<li class="md-nav__item">
<a href="{% if child.external_url %}{{ child.external_url }}{% else %}{{ site.baseurl }}/{{ child.url }}{% endif %}"
title="{{ child.title }}" style="display:none"
class="md-nav__link pancakes-child">{{ child.title }}</a>
</li>{% endfor %}
</ul>
</nav>{% endif %}
</nav>
</li>

Expand Down

0 comments on commit 3dfa16c

Please sign in to comment.