Sha256: b56a4a915232daabd30929217e02b7093ce31556f296ece57054a57996d794f7

Contents?: true

Size: 1.02 KB

Versions: 7

Compression:

Stored size: 1.02 KB

Contents

{% for menu in site.data.menu.main %}
  {% assign matches = menu.match | split: ", " %}
  {% for match in matches %}
    {% if page.url contains match %}
      {% if menu.submenu %}
        <nav class="c-top-sub-nav">
          <div class="row">
            <div class="c-top-sub-nav-inner columns">
              <div class="c-top-sub-nav__header">
                <h2 class="c-top-sub-nav__heading">
                  <a href="{{ menu.link }}">{{ menu.name }} </a>
                </h2>
              </div>
              <div class="c-top-sub-nav-divider"></div>
              <ul class="c-top-sub-nav-items">
                {% for submenu in menu.submenu %}
                <li class="c-top-sub-nav__item {% if page.url contains submenu.match %}c-top-sub-nav__item--active{% endif %}">
                  <a href="{{ submenu.link }}">{{ submenu.name }} </a>
                </li>
                {% endfor %}
              </ul>
            </div>
          </div>
        </nav>
      {% endif %}
    {% endif %}
  {% endfor %}
{% endfor %}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jekyll-theme-pirati-7.7.1 _includes/submenu.html
jekyll-theme-pirati-7.7.0 _includes/submenu.html
jekyll-theme-pirati-7.6.2 _includes/submenu.html
jekyll-theme-pirati-7.6.1 _includes/submenu.html
jekyll-theme-pirati-7.6.0 _includes/submenu.html
jekyll-theme-pirati-7.5.0 _includes/submenu.html
jekyll-theme-pirati-7.4.0 _includes/submenu.html