Sha256: c41f566637ede0e69659b4fbbdb915b69e6f233266dab896c0cd13cc601c2313

Contents?: true

Size: 729 Bytes

Versions: 1

Compression:

Stored size: 729 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

1 entries across 1 versions & 1 rubygems

Version Path
oscailte-3.0.1 _includes/navigation.html