Skip to content

Commit c504551

Browse files
Disabled navbar toggler button on all subpages.
1 parent 432ada7 commit c504551

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

_includes/navigation.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@
4141
src="{{ site.baseurl }}/static/images/site_logo/python_sprints_logo_triangles_flat_light_text_502x100px.png"
4242
alt="Python Sprints Logo">
4343
</a>
44-
<button class="navbar-toggler" type="button" data-toggle="collapse"
45-
data-target="#navbarToggler"
46-
aria-controls="navbarToggler" aria-expanded="false"
47-
aria-label="Toggle navigation">
48-
<span class="navigation__icon navbar-toggler-icon"></span>
49-
</button>
44+
{% if page.url == "/" %}
45+
<button class="navbar-toggler" type="button" data-toggle="collapse"
46+
data-target="#navbarToggler"
47+
aria-controls="navbarToggler" aria-expanded="false"
48+
aria-label="Toggle navigation">
49+
<span class="navigation__icon navbar-toggler-icon"></span>
50+
</button>
51+
{% endif %}
5052
<div class="collapse navbar-collapse" id="navbarToggler">
5153
<ul class="navbar-nav ml-auto mt-2 mt-lg-0">
5254
{% unless page.is_post or page.is_chapter %}

0 commit comments

Comments
 (0)