Sha256: 58b80781838d6f75a7c79efddc420621a5250895cb1542ed694997688a979978

Contents?: true

Size: 1.39 KB

Versions: 2

Compression:

Stored size: 1.39 KB

Contents

  <header><div>
    {%- assign default_paths = site.pages | map: "path" -%}
    {%- assign page_paths = site.jekyll-theme-mnc.header_pages | default: default_paths -%}
    {%- assign pages_with_titles = site.pages | map: 'title' | join: '' | size %}
    <h2><a rel="author" href="{{ '/' | relative_url }}">{{ site.title | escape }}</a></h2>
    {% if site.description -%}
    <p>{{ site.description }}</p>
    {%- endif %}

    {%- if pages_with_titles > 0 %}
    <nav aria-label="Navigation" itemscope itemtype="https://schema.org/SiteNavigationElement">
      {% for path in page_paths -%}
        {%- assign my_page = site.pages | where: "path", path | first -%}
        {% if my_page.title -%}
      <a itemprop="url" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
          {%- unless forloop.last %} • {% endunless -%}
        {% endif %}
      {%- endfor -%}
      {%- if site.categories.size > 0 %}
       •
      {%- endif %}
      {%- assign category_paths = site.categories | default: default_paths -%}
      {%- assign sorted_categories = site.categories | sort -%}
      {% for category in sorted_categories %}
      <a itemprop="url" href="{{ site.baseurl }}/{{ site.jekyll-theme-mnc.category_slug}}/{{ category[0] | slugify }}">{{ category[0] | escape }}</a>
        {%- unless forloop.last %} • {% endunless -%}
      {%- endfor %}
    </nav>
    {%- endif %}
  </div></header>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-theme-mnc-1.0.1 _includes/header-list.html
jekyll-theme-mnc-1.0.0 _includes/header-list.html