Sha256: bbd510b1b8edbc55156871167511452491b1c83a0064da606173b0a008309044

Contents?: true

Size: 1.41 KB

Versions: 3

Compression:

Stored size: 1.41 KB

Contents

<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark">
    <div class="container">
      <a class="navbar-brand" href="{{ site.navbar-brand.link }}"><img src="{{ site.navbar-brand.path }}" height="32" alt="{{ site.navbar-brand.name }}"></a>
        <button data-toggle="collapse" class="navbar-toggler" data-target="#navcol-1"><span class="sr-only">Toggle navigation</span><span class="navbar-toggler-icon"></span></button>
        <div class="collapse navbar-collapse" id="navcol-1">
            <ul class="nav navbar-nav ml-auto">
              {% for nav-item in site.navbar %}
              {% if nav-item.menu.size == 0 %}
              <li class="nav-item" role="presentation"><a class="nav-link" href="{{ nav-item.link }}"><i class="{{ nav-item.icon }}"></i> {{ nav-item.name }}</a></li>
              {% else %}
              <li class="nav-item dropdown"><a class="dropdown-toggle nav-link" data-toggle="dropdown" aria-expanded="false" href="#"><i class="{{ nav-item.icon }}"></i> {{ nav-item.name }}</a>
                <div class="dropdown-menu" role="menu">
                  {% for dropdown-item in nav-item.menu %}
                  <a class="dropdown-item" role="presentation" href="{{ dropdown-item.link }}">{{ dropdown-item.name }}</a>
                  {% endfor %}
                </div>
              </li>
              {% endif %}
              {% endfor %}
            </ul>
        </div>
    </div>
</nav>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jekyll-theme-centos-0.1.16 _includes/navbar.html
jekyll-theme-centos-0.1.15 _includes/navbar.html
jekyll-theme-centos-0.1.14 _includes/navbar.html