Sha256: e39e77c32823972efaa1a5f5e5a71f89fa26d88d0e532db959196b1597ca62ab

Contents?: true

Size: 1.11 KB

Versions: 8

Compression:

Stored size: 1.11 KB

Contents

<!-- nav menu {% comment %}
Generates header navigation menu.
{% endcomment %} -->
<ul class="navbar-nav mt-2 mt-lg-0">
{% for link in site.data.navs.header.links %}
  {% assign link_match = link.href | append: "/" | replace: "//","/" %}
  {% assign page_path = page.url | truncate: link_match.size, "" | append: "/" | replace: "//","/" %}
  {% if link_match == page_path %}
    {% assign active = "active" %}
  {% endif %}
  {% if link.kids %}
  <li class="nav-item mr-4 mb-2 mb-lg-0 dropdown">
    <a class="nav-link dropdown-toggle {{active}}" href="{{ link.href | default: '#' }}" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
      {{ link.text }}</a>
    <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
    {% for kid in link.kids %}
      <a class="dropdown-item" href="{{ kid.href }}">
        {{ kid.text }}
      </a>
    {% endfor %}
    </div>
  </li>
  {% else %}
  <li class="nav-item mr-4 mb-2 mb-lg-0">
    <a class="nav-link {{active}}" href="{{ link.href }}">{{ link.text}}</a>
  </li>
  {% endif %}
  {% assign active = "" %}
{% endfor %}
</ul>

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
asciidocsy-0.3.0 _includes/nav-site.html
asciidocsy-0.3.0.pre.rc4 _includes/nav-site.html
asciidocsy-0.3.0.pre.rc3 _includes/nav-site.html
asciidocsy-0.3.0.pre.rc2 _includes/nav-site.html
asciidocsy-0.3.0.pre.rc1 _includes/nav-site.html
asciidocsy-jekyll-theme-0.3.0.pre.rc2 _includes/nav-site.html
asciidocsy-jekyll-theme-0.3.0.pre.rc1 _includes/nav-site.html
asciidocsy-jekyll-theme-0.3.0.pre.dev _includes/nav-site.html