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 29bccf8 commit ee429ba
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

{% if section.children %}
<input class="md-toggle md-nav__toggle" data-md-toggle="toc" id="__toc-{{ section.title | slugify }}" type="checkbox">
<label class="md-nav__link" for="__toc-{{ section.title | slugify }}">{{ section.title }}</label>
<label class="md-nav__link" for="__toc-{{ section.title | slugify }}" type="toc">{{ section.title }}</label>
<nav class="md-nav md-nav--secondary" id="{{ section.title | slugify }}">
<label class="md-nav__title" for="__toc-{{ section.title | slugify }}">{{ section.title }}</label>
<ul class="md-nav__list" data-md-scrollfix="">
Expand All @@ -36,27 +36,7 @@
{% endif %}
</li>{% endfor %}

<!-- This navigation is completely for mobile -->
{% for section in site.data.toc %}<li class="md-nav__item mobile-nav" style="display:none">
<a class="md-nav__link" href="{% if section.external_url %}{{ section.external_url }}{% else %}{{ site.baseurl }}/{{ section.url }}{% endif %}" title="{{ section.title }}">{{ section.title }}</a>
</li>{% endfor %}

<!-- This navigation is completely for non mobile -->
{% for section in site.data.toc %}
<li class="md-nav__item md-nav__item--nested not-mobile-nav">
<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>
Expand Down

0 comments on commit ee429ba

Please sign in to comment.