blob: 1da4b5a350ca9e4fcdd2a9f96b621fabb2e09536 (
plain) (
tree)
|
|
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">{{ site.settings.author.name }}</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
{% assign page_list = site.pages | sort: "navbar_priority" %}
{% for node in page_list %}
{% if node.root_page %}
{% if navbar_has_root_page %}
{% continue %}
{% endif %}
{% assign navbar_has_root_page = true %}
{% endif %}
{% if node.groups contains 'navbar' %}
{% if page.url == node.url %}
<li class="active"><a href="{{ node.url | relative_url }}" class="active">{{ node.navbar_link }}</a></li>
{% else %}
<li><a href="{{ node.url | relative_url }}">{{ node.navbar_link }}</a></li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
</div>
</div>
</nav>
|