Skip to content

Commit a198d1a

Browse files
000-775: navi extra level
1 parent 2b29c27 commit a198d1a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

_includes/header.html

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@
1515
{% if site.data.navigation %}
1616
{% for item in site.data.navigation %}
1717
{% if item.dropdown %}
18-
<!-- First-level dropdown -->
19-
<div class="navbar-item has-dropdown {% if site.fixed_navbar == 'bottom' %} has-dropdown-up {% endif %}">
18+
<div class="navbar-item has-dropdown is-hoverable {% if site.fixed_navbar == 'bottom' %} has-dropdown-up {% endif %}">
2019
<a href="{{ item.link | relative_url }}" class="navbar-link {% if page.url contains item.link %}is-active{% endif %}">{{ item.name }}</a>
2120
<div class="navbar-dropdown">
2221
{% for subitem in item.dropdown %}
2322
{% if subitem.dropdown %}
24-
<!-- Second-level dropdown -->
2523
<div class="navbar-item has-dropdown is-hoverable">
2624
<a href="{{ subitem.link | relative_url }}" class="navbar-link">{{ subitem.name }}</a>
2725
<div class="navbar-dropdown">
@@ -37,14 +35,11 @@
3735
</div>
3836
</div>
3937
{% else %}
40-
<!-- Non-dropdown first-level link -->
4138
<a href="{{ item.link | relative_url }}" class="navbar-item {% if item.link == page.url %}is-active{% endif %}">{{ item.name }}</a>
4239
{% endif %}
4340
{% endfor %}
4441
{% endif %}
4542
</div>
46-
47-
4843
<div class="navbar-end">
4944
<a href=""><img src="../../../../flag.png" /></a>
5045
<a class="navbar-item" href="#">
@@ -53,4 +48,4 @@
5348
</div>
5449
</div>
5550
</div>
56-
</nav>
51+
</nav>

0 commit comments

Comments
 (0)