Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Latest commit

 

History

History
20 lines (16 loc) · 714 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 714 Bytes

pico-breadcrumbs

Adds breadcrumbs for navigation and search engine detection

Usage

Add the following code to your template file index.html, it is optimized for Google indexing

{% if breadcrumbs %}
  <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
    <a href="/" itemprop="url"><span itemprop="title">{{ site_title }}</span></a>
    {% for crumb in breadcrumbs %}
      <div itemprop="child" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
        &nbsp;&gt;&nbsp; 
        <a href="{{ crumb.url }}" itemprop="url"><span itemprop="title">{{ crumb.name }}</span></a>
      </div>
    {% endfor %}
  </div>
{% endif %}