Sha256: dd2890936029d53ce6287c261fb6c5d96ff6d35a79cfd115122d8aee55f52c7f

Contents?: true

Size: 712 Bytes

Versions: 3

Compression:

Stored size: 712 Bytes

Contents

{%- assign default_paths = site.pages | map: "path" -%}
{%- assign page_paths = site.header_pages | default: default_paths -%}
{%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}

{%- if titles_size > 0 -%}
<nav class="Navigation">
  <ul class="Navigation__items o-list-bare">
    {%- for path in page_paths -%}
      {%- assign nav_page = site.pages | where: "path", path | first -%}
      {%- if nav_page.title -%}
      <li class="Navigation__item{% if page.url == nav_page.url %} is-active{%endif%}">
        <a class="Navigation__link" href="{{ nav_page.url | relative_url }}">{{nav_page.title | escape}}</a>
      </li>
      {%- endif -%}
    {%- endfor -%}
  </ul>
</nav>
{% endif %}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
oscailte-3.1.0 _includes/navigation.html
oscailte-3.0.3 _includes/navigation.html
oscailte-3.0.2 _includes/navigation.html