Skip to content

Commit

Permalink
Navigation bar: allow excluding extras (#617)
Browse files Browse the repository at this point in the history
Port of carpentries/instructor-training@dc1b52a

Co-authored-by: maneesha sane <maneeshasane@gmail.com>

Co-authored-by: maneesha sane <maneeshasane@gmail.com>
  • Loading branch information
maxim-belkin and maneesha authored Jul 20, 2021
1 parent 5237285 commit 674025c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@
{% else %}
{% assign extra = lesson_extra %}
{% endif %}
<li><a href="{{ relative_root_path }}{{ extra.url }}">{{ extra.title }}</a></li>
{% unless extra.exclude %}
<li><a href="{{ relative_root_path }}{{ extra.url }}">{{ extra.title }}</a></li>
{% endunless %}
{% endfor %}
</ul>
</li>
Expand Down

0 comments on commit 674025c

Please sign in to comment.