Skip to content

Commit

Permalink
only display Episodes drop-down if we have episodes to show (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmichonneau authored Aug 11, 2020
1 parent 52597a5 commit 70213c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<li><a href="{{ relative_root_path }}{% link setup.md %}">Setup</a></li>

{% comment %} Show lesson episodes for lessons. {% endcomment %}
{% if lesson_episodes.length > 0 %}
<li class="dropdown">
<a href="{{ relative_root_path }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Episodes <span class="caret"></span></a>
<ul class="dropdown-menu">
Expand All @@ -64,6 +65,7 @@
<li><a href="{{ relative_root_path }}{% link aio.md %}">All in one page (Beta)</a></li>
</ul>
</li>
{% endif %}
{% endif %}

{% comment %} Show extras for lessons or if this is the main workshop-template repo (where they contain documentation). {% endcomment %}
Expand Down

0 comments on commit 70213c3

Please sign in to comment.