forked from brown-ivl/brown-ivl.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
navbar.html
26 lines (26 loc) · 1.1 KB
/
navbar.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!-- This generates the navbar for the webpage -->
<nav class="navbar sticky-top navbar-expand-lg navbar-dark">
<div class="container">
<a class="navbar-brand" href="/">
<img class="navbar-logo img-fluid" src="{{base}}/assets/images/icons/brown_logo.png" />
Brown IVL
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
{% for item in site.data.navigation %}
<li class="nav-item">
<a class="nav-item nav-link" href="{{ item.link }}"
{% if page.url == item.link %}
class="active"
{% endif %} >
{{ item.name }}
</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</nav>