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 0ca666e commit bc4a603
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,10 @@

<ul class="md-nav__list" data-md-scrollfix="">
<li class="md-nav__item md-nav__item--active">
<label class="md-nav__link md-nav__link--active" for="__toc">Home</label>
<a class="md-nav__link md-nav__link--active" href="{{ site.baseurl }}/" title="Home">Home</a>

<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 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 %}
</li>
{% endfor %}
</ul>
</nav>

</li>

<!-- This navigation is completely for mobile -->
Expand Down

0 comments on commit bc4a603

Please sign in to comment.