_includes/header.html in intia-theme-0.1.16 vs _includes/header.html in intia-theme-0.1.17

- old
+ new

@@ -15,23 +15,28 @@ <div class="navbar-end buttons"> {% if site.data.navigation %} {% for item in site.data.navigation %} {% if item.dropdown %} <div - class="navbar-item has-text-left button is-rounded is-dark has-dropdown is-hoverable {% if site.fixed_navbar == 'bottom' %} has-dropdown-up {% endif %}"> - <a href="{{ item.link | relative_url }}" - class="navbar-link {% if item.link == page.url %}is-active{% endif %}">{{ item.name }}</a> + class="navbar-item has-text-left button is-rounded is-dark has-dropdown is-hoverable {% if site.fixed_navbar == 'bottom' %} has-dropdown-up {% endif %} {% for subitem in item.dropdown %} {% if subitem.link == page.url %} is-active-header {% endif %} {% endfor %}"> + + {% if item.selectable %} + <a href="{{ item.link | relative_url }}" + class="navbar-link {% if item.link == page.url %} is-active {% endif %}">{{ item.name }}</a> + {% else %} + <a for="navbar-click" class="navbar-link">{{ item.name }}</a> + {% endif %} <div class="navbar-dropdown"> {% for subitem in item.dropdown %} <a href="{{ subitem.link | relative_url }}" - class="navbar-item button is-rounded is-dark {% if subitem.link == page.url %}is-active{% endif %}">{{ subitem.name + class="navbar-item button is-rounded is-dark {% if subitem.link == page.url %} is-active {% endif %}">{{ subitem.name }}</a> {% endfor %} </div> </div> {% else %} <a href="{{ item.link | relative_url }}" - class="navbar-item button is-rounded is-dark {% if item.link == page.url %}is-active{% endif %}">{{ item.name }}</a> + class="navbar-item has-text-left button is-rounded is-dark {% if item.link == page.url %}is-active{% endif %}">{{ item.name }}</a> {% endif %} {% endfor %} {% endif %} </div> </div> \ No newline at end of file