forked from yousinix/portfolYOU
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavbar.html
20 lines (16 loc) · 954 Bytes
/
navbar.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<nav class="navbar navbar-expand-lg navbar-light">
<a class="navbar-brand" href="{{ site.baseurl }}/"><h5><b>{{ site.title }}</b></h5></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav ml-auto">
{% assign pages = site.html_pages | sort: 'weight' %}
{% for site_page in pages %}
{% if site_page.title %}
<a class="nav-item nav-link {% if page.url contains site_page.permalink %} active {% endif %}" href="{% if site_page.external_url %} {{ site_page.external_url }} {% else %} {{ site_page.permalink | relative_url }} {% endif %}">{{ site_page.title }}</a>
{% endif %}
{% endfor %}
</div>
</div>
</nav>