Sha256: da5edd1da4008413f7ec615d912126bef756af30e0843582959adb1a8cc0d347

Contents?: true

Size: 1.95 KB

Versions: 2

Compression:

Stored size: 1.95 KB

Contents

{% assign navbar = site.data[site.navbar_data_dirname][site.navbar_data_filename] %}
<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark bg-image shadow">
  <div class="container">
    <a class="navbar-brand" href="{{ site.url }}{{ site.baseurl }}/"><img src="{{ site.url }}{{ site.baseurl }}/assets/img/{{ page.with_logo }}" height="32" alt="{{ site.title }}" />{% if page.with_manifestation != "" %}<span class="manifestation border-start border-light ps-3 ms-3 py-2 fs-6">{{ page.with_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 ms-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.url }}{{ 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.url }}{{ site.baseurl }}{{ dropdownitem.link }}">{{ dropdownitem.name }}</a></li>
            {% endfor -%}
          </ul>
        </li>
        {% endif -%}
        {% endfor -%}
      </ul>
    </div>

  </div>
</nav>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-theme-centos-2.44.0 _includes/base/navbar.html
jekyll-theme-centos-2.43.0 _includes/base/navbar.html