Sha256: b2a4b36445ba9f5f76735fc41b0fe5bc3fd0bcbf0a52beadd5ed0fc242421e24

Contents?: true

Size: 1.75 KB

Versions: 20

Compression:

Stored size: 1.75 KB

Contents

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

<nav class="nav__list">
  {% if page.sidebar.title %}<h3 class="nav__title" style="padding-left: 0;">{{ page.sidebar.title }}</h3>{% endif %}
  <input id="ac-toc" name="accordion-toc" type="checkbox" />
  <label for="ac-toc">{{ site.data.ui-text[site.locale].menu_label | default: "Toggle Menu" }}</label>
  <ul class="nav__items">
    {% for nav in navigation %}
      <li>
        {% if nav.url %}
          {% comment %} internal/external URL check {% endcomment %}
          {% if nav.url contains "://" %}
            {% assign domain = "" %}
          {% else %}
            {% assign domain = site.url | append: site.baseurl %}
          {% endif %}

          <a href="{{ domain }}{{ nav.url }}"><span class="nav__sub-title">{{ nav.title }}</span></a>
        {% else %}
          <span class="nav__sub-title">{{ nav.title }}</span>
        {% endif %}

        {% if nav.children != null %}
        <ul>
          {% for child in nav.children %}
            {% comment %} internal/external URL check {% endcomment %}
            {% if child.url contains "://" %}
              {% assign domain = "" %}
            {% else %}
              {% assign domain = site.url | append: site.baseurl %}
            {% endif %}

            {% comment %} set "active" class on current page {% endcomment %}
            {% if child.url == page.url %}
              {% assign active = "active" %}
            {% else %}
              {% assign active = "" %}
            {% endif %}

            <li><a href="{{ domain }}{{ child.url }}" class="{{ active }}">{{ child.title }}</a></li>
          {% endfor %}
        </ul>
        {% endif %}
      </li>
    {% endfor %}
  </ul>
</nav>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
minimal-mistakes-jekyll-4.10.0 _includes/nav_list
minimal-mistakes-jekyll-4.9.1 _includes/nav_list
minimal-mistakes-jekyll-4.8.0 _includes/nav_list
minimal-mistakes-jekyll-4.7.1 _includes/nav_list
minimal-mistakes-jekyll-4.6.0 _includes/nav_list
minimal-mistakes-jekyll-4.5.2 _includes/nav_list
minimal-mistakes-jekyll-4.5.1 _includes/nav_list
minimal-mistakes-jekyll-4.5.0 _includes/nav_list
minimal-mistakes-jekyll-4.4.2 _includes/nav_list
minimal-mistakes-jekyll-4.4.0 _includes/nav_list
minimal-mistakes-jekyll-4.3.1 _includes/nav_list
minimal-mistakes-jekyll-4.3.0 _includes/nav_list
minimal-mistakes-jekyll-4.2.2 _includes/nav_list
minimal-mistakes-jekyll-4.2.1 _includes/nav_list
minimal-mistakes-jekyll-4.2.0 _includes/nav_list
minimal-mistakes-jekyll-4.1.0 _includes/nav_list
minimal-mistakes-jekyll-4.0.10 _includes/nav_list
minimal-mistakes-jekyll-4.0.9 _includes/nav_list
minimal-mistakes-jekyll-4.0.8 _includes/nav_list
minimal-mistakes-jekyll-4.0.7 _includes/nav_list