Skip to content

Commit 674025c

Browse files
Navigation bar: allow excluding extras (#617)
Port of carpentries/instructor-training@dc1b52a Co-authored-by: maneesha sane <maneeshasane@gmail.com> Co-authored-by: maneesha sane <maneeshasane@gmail.com>
1 parent 5237285 commit 674025c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

_includes/navbar.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@
8080
{% else %}
8181
{% assign extra = lesson_extra %}
8282
{% endif %}
83-
<li><a href="{{ relative_root_path }}{{ extra.url }}">{{ extra.title }}</a></li>
83+
{% unless extra.exclude %}
84+
<li><a href="{{ relative_root_path }}{{ extra.url }}">{{ extra.title }}</a></li>
85+
{% endunless %}
8486
{% endfor %}
8587
</ul>
8688
</li>

0 commit comments

Comments
 (0)