Skip to content

Commit 70213c3

Browse files
authored
only display Episodes drop-down if we have episodes to show (#491)
1 parent 52597a5 commit 70213c3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

_includes/navbar.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
<li><a href="{{ relative_root_path }}{% link setup.md %}">Setup</a></li>
5050

5151
{% comment %} Show lesson episodes for lessons. {% endcomment %}
52+
{% if lesson_episodes.length > 0 %}
5253
<li class="dropdown">
5354
<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>
5455
<ul class="dropdown-menu">
@@ -64,6 +65,7 @@
6465
<li><a href="{{ relative_root_path }}{% link aio.md %}">All in one page (Beta)</a></li>
6566
</ul>
6667
</li>
68+
{% endif %}
6769
{% endif %}
6870

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

0 commit comments

Comments
 (0)