navbar.html 1.35 KB
Newer Older
Daniel W Bond's avatar
Daniel W Bond committed
1
<nav class="navbar navbar-inverse navbar-fixed-top">
Daniel W Bond's avatar
Daniel W Bond committed
2
3
  <div class="container">
    <div class="navbar-header">
Daniel W Bond's avatar
Daniel W Bond committed
4
5
6
7
8
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      <span class="icon-bar"></span>
      </button>
Mark Stenglein's avatar
Mark Stenglein committed
9
      <a class="navbar-brand xolonium" href="/"><img src="/assets/img/SRCT_square.svg" width=24 height=24 alt=""/>&nbsp;&nbsp;Mason SRCT</a>
Daniel W Bond's avatar
Daniel W Bond committed
10
    </div>
Daniel W Bond's avatar
Daniel W Bond committed
11

12
    <div class="navbar-right collapse navbar-collapse navbar-ex1-collapse">
Daniel W Bond's avatar
Daniel W Bond committed
13
      <ul class="nav navbar-nav">
14
15
16
17
18
19
20
21
22
23
24
25
26
27
        {% for link in site.data.navigation.main %}
          {% if link.children == null %}
            <li><a href="{{ link.url }}">{{ link.title }}</a></li>
          {% else %}
            <li class="dropdown">
              <a id="drop1" href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">{{ link.title }} <b class="caret"></b></a>
              <ul class="dropdown-menu" role="menu" aria-labelledby="drop1">
                {% for childLink in link.children %}
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="{{ childLink.url }}">{{ childLink.title }}</a></li>
                {% endfor %}
              </ul>
            </li>
          {% endif %}
        {% endfor %}
Daniel W Bond's avatar
Daniel W Bond committed
28
      </ul>
29
    </div>
Daniel W Bond's avatar
Daniel W Bond committed
30
31
  </div>
</nav>