Sha256: 927a9147509b38b4a9b6cde75aae0ce64fabb397db0413aa273d035b0fb5e573

Contents?: true

Size: 942 Bytes

Versions: 5

Compression:

Stored size: 942 Bytes

Contents

<nav class="navbar navbar-expand-lg navbar-light bg-light d-print-block" role="navigation" aria-label="{{ site.i18n.menu.title }}">
  <a class="navbar-brand" href="">
    {% include_cached logo.svg %}
  </a>

  {% comment %}
    TODO: Add CSS-only hamburger menu.
  {% endcomment %}
  <ul class="navbar-nav d-print-none">
    {%- for item in site.i18n.menu.items -%}
      {% comment %}
        This makes it hard to just cache the whole navbar, but we prefer
        to mark the active item in code rather than with JS.
      {% endcomment %}

      <li class="nav-item">
        <a class="nav-link{% if page.url == item.url %} active{% endif %}" href="{{ item.url }}">
          {{ item.text }}

          {%- if page.url == item.url -%}
            <span class="sr-only">
              {{ site.i18n.menu.active | default: '(current)' }}
            </span>
          {%- endif %}
        </a>
      </li>
    {%- endfor -%}
  </ul>
</nav>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sutty-jekyll-theme-0.1.4 _includes/navbar.html
sutty-jekyll-theme-0.1.3 _includes/navbar.html
sutty-jekyll-theme-0.1.2 _includes/navbar.html
sutty-jekyll-theme-0.1.1 _includes/navbar.html
sutty-jekyll-theme-0.1.0 _includes/navbar.html