Sha256: cf22058e2fd2daf1f74298a024ffe6c8e0d257e1d96c24876ce9c97a65f797c2

Contents?: true

Size: 798 Bytes

Versions: 1

Compression:

Stored size: 798 Bytes

Contents

{%- assign current_url = page.url | remove: 'index.html' %}
{%- assign aria_current = '' %}
  <nav class="site-breadcrumbs" aria-label="{{ 'aria' | t: 'breadcrumbs' }}">
   <ol vocab="http://schema.org/" typeof="BreadcrumbList">
   {%- for crumb in breadcrumbs %} 
      {%- if forloop.last %}
         {%- assign aria_current = ' aria-current="page"' %}
      {%- else %}
         {%- assign aria_current = '' %}
      {%- endif %}
      <li property="itemListElement" typeof="ListItem">
         <a property="item" typeof="WebPage" href="{{ crumb.url | relative_url }}"{{aria_current}}>
            <span property="name">{{ crumb.title }}</span>
            <meta property="position" content="{{ crumb.position }}" />
         </a>
      </li>
   {%- endfor %}
   </ol>
  </nav>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fenton-jekyll-boilerplate-0.0.15 _includes/breadcrumbs.html