Sha256: 38d96b2bf555840ee6266d8f3f202827dd61357578ac54fc2ba4cca6b9a54578

Contents?: true

Size: 1.99 KB

Versions: 9

Compression:

Stored size: 1.99 KB

Contents

{% assign navbar = site.data[site.navbar_data_dirname][site.navbar_data_filename] %}
<header class="site-header sticky-top">
  <nav class="navbar navbar-expand-lg navbar-dark bg-dark shadow">
    <div class="container">
      <a class="navbar-brand pt-1" href="{{ site.baseurl }}/"><img role="img" src="{{ site.baseurl }}/{{ site.data.base.identity.logo.navbar }}" height="32" alt="{{ site.title }}" />{% if site.manifestation != "" %}<span class="manifestation border-start border-light ps-3 ms-3 py-2 fs-6">{{ site.manifestation }}</span>{% endif %}</a>
      <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>
      <div class="collapse navbar-collapse" id="navbarContent">
        <ul class="navbar-nav mr-auto">
          {% assign navitems = navbar | where: "visible_on", "navbar" -%}
          {% for navitem in navitems -%}
          {% if navitem.menu.size == 0 -%}
          <li class="nav-item">
            <a class="nav-link" role="presentation" href="{{ site.baseurl }}{{ navitem.link }}"><i class="{{ navitem.icon }}"></i> {{ navitem.name }}</a>
          </li>
          {% else -%}
          <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown-{{ forloop.index }}" role="button" data-bs-toggle="dropdown" aria-expanded="false"><i class="{{ navitem.icon }}"></i> {{ navitem.name }}</a>
            <ul class="dropdown-menu dropdown-menu-dark shadow" aria-labelledby="navbarDropdown-{{ forloop.index }}">
              {% for dropdownitem in navitem.menu -%}
              <li><a class="dropdown-item" role="presentation" href="{{ site.baseurl }}{{ dropdownitem.link }}">{{ dropdownitem.name }}</a></li>
              {% endfor -%}
            </ul>
          </li>
          {% endif -%}
          {% endfor -%}
        </ul>
      </div>
    </div>
  </nav>
</header>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
jekyll-theme-centos-2.6.0 _includes/base/navbar.html
jekyll-theme-centos-2.5.2 _includes/base/navbar.html
jekyll-theme-centos-2.5.1 _includes/base/navbar.html
jekyll-theme-centos-2.5.0 _includes/base/navbar.html
jekyll-theme-centos-2.4.0 _includes/base/navbar.html
jekyll-theme-centos-2.3.0 _includes/base/navbar.html
jekyll-theme-centos-2.2.21 _includes/base/navbar.html
jekyll-theme-centos-2.2.20 _includes/base/navbar.html
jekyll-theme-centos-2.2.19 _includes/base/navbar.html