Sha256: 53b8a29980375cc5f3133c825c8dd94f40562cdb88ea4c0ed18ccbc6bb8ac251

Contents?: true

Size: 681 Bytes

Versions: 1

Compression:

Stored size: 681 Bytes

Contents

<header>
    <div class="wrapper">
        {%- assign default_paths = site.pages | map: "path" -%}
        {%- assign page_paths = site.header_pages | default: default_paths -%}
        <h1><a href="{{ "/" | relative_url }}">{{ site.title | escape }}</a></h1>
        {%- if page_paths -%}
        <nav>
            {%- for path in page_paths -%}
                {%- assign my_page = site.pages | where: "path", path | first -%}
                {%- if my_page.title -%}
                    <a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
                {%- endif -%}
            {%- endfor -%}
        </nav>
        {%- endif -%}
    </div>
</header>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nokcode-theme-0.1.0 _includes/header.html