Sha256: 51c87c0d3a5dc6bbfffce3cd1ed6bd8f4c82475f7729293f2735f01728404e97

Contents?: true

Size: 1.9 KB

Versions: 21

Compression:

Stored size: 1.9 KB

Contents

{% assign navbar = site.data[site.navbar_data_dirname][site.navbar_data_filename] %}
<nav class="navbar sticky-top 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>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
jekyll-theme-centos-2.27.0 _includes/base/navbar.html
jekyll-theme-centos-2.26.0 _includes/base/navbar.html
jekyll-theme-centos-2.25.0 _includes/base/navbar.html
jekyll-theme-centos-2.24.0 _includes/base/navbar.html
jekyll-theme-centos-2.23.0 _includes/base/navbar.html
jekyll-theme-centos-2.22.0 _includes/base/navbar.html
jekyll-theme-centos-2.21.0 _includes/base/navbar.html
jekyll-theme-centos-2.20.0 _includes/base/navbar.html
jekyll-theme-centos-2.19.0 _includes/base/navbar.html
jekyll-theme-centos-2.18.0 _includes/base/navbar.html
jekyll-theme-centos-2.17.0 _includes/base/navbar.html
jekyll-theme-centos-2.16.0 _includes/base/navbar.html
jekyll-theme-centos-2.15.0 _includes/base/navbar.html
jekyll-theme-centos-2.14.0 _includes/base/navbar.html
jekyll-theme-centos-2.13.0 _includes/base/navbar.html
jekyll-theme-centos-2.12.0 _includes/base/navbar.html
jekyll-theme-centos-2.11.0 _includes/base/navbar.html
jekyll-theme-centos-2.10.0 _includes/base/navbar.html
jekyll-theme-centos-2.9.0 _includes/base/navbar.html
jekyll-theme-centos-2.8.0 _includes/base/navbar.html