Sha256: 13cd3b323a3e24454de2dece0cdf9da2762d2f32d9c9ac70ba2d89602265c451

Contents?: true

Size: 1.98 KB

Versions: 8

Compression:

Stored size: 1.98 KB

Contents

<!--
  file: nav_list.html
  path: /_includes/nav_list.html
  includes:
-->

<!-- Navigation List -->

{% assign navigation = site.data.navigation[include.nav] %}

  <!-- Navigation Title -->
  {% for nav in navigation %}
    {% if nav.nav-title %}
      <h3 class="nav__title" style="padding-left: 0;">{{ nav.nav-title }}</h3>
    {% endif %}
  {% endfor %}


  
  <ul class="list-unstyled fw-normal pb-2 small">
  <!-- Accordion Nav List -->
  {% for nav in navigation %}
      <!-- Nav Title Only Link -->
      {% if nav.sublinks == null and nav.title%}
      <li class="mb-1">
        <a href="{{ nav.url | relative_url }}" class="active d-inline-flex align-items-center rounded">
          <span class="">{{ nav.title }}</span>
        </a>
      </li>
      {% endif %}

      {% if nav.sublinks %}
        <li class="mb-1">
          <strong class="d-flex w-100 align-items-center fw-semibold collapsed"
          data-bs-toggle="collapse" 
          data-bs-target="#{{ nav.title }}-collapse" 
          aria-expanded="true" 
          aria-current="true">
            {{ nav.title }}
          </strong>
          <!-- <button class="btn d-inline-flex align-items-center rounded collapsed" 
                  data-bs-toggle="collapse" 
                  data-bs-target="#{{ nav.title }}-collapse" 
                  aria-expanded="true" 
                  aria-current="true">
            {{ nav.title }}
          </button> -->
          <div class="collapse show" id="{{ nav.title }}-collapse" style="">
            <ul class="list-unstyled fw-normal pb-1 small">
              {% for child in nav.sublinks %}
                <li>
                  <a href="{{ child.url | relative_url }}"
                    {% if child.url == page.url %} class="active d-inline-flex align-items-center rounded"{% endif %}
                      >{{ child.title }}
                  </a>
                </li>
              {% endfor %}
            </ul>
          </div>
        {% endif %}
      </li>
    {% endfor %}
  </ul>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jekyll-theme-zer0-0.1.7 _includes/nav_list.html
jekyll-theme-zer0-0.1.6 _includes/nav_list.html
jekyll-theme-zer0-0.1.5 _includes/nav_list.html
jekyll-theme-zer0-0.1.4 _includes/nav_list.html
jekyll-theme-zer0-0.1.3 _includes/nav_list.html
jekyll-theme-zer0-0.1.2 _includes/nav_list.html
jekyll-theme-zer0-0.1.1 _includes/nav_list.html
jekyll-theme-zer0-0.1.0 _includes/nav_list.html