1. Home
  2. {% assign crumbs = page.url | split: '/' %} {% assign crumbs_total = crumbs | size | minus: 1 %} {% for crumb in crumbs offset: 1 %} {%- assign position = forloop.index |plus: 1 -%} {% if forloop.index == crumbs_total %}
  3. {{page.title}}
  4. {% else %} {% assign crumb_limit = forloop.index | plus: 1 %} {% capture crumb_url %}{% for c in crumbs limit: crumb_limit %}{{ c | append: '/' }}{% endfor %}{% endcapture %} {% capture crumb_with_index %}{{ crumb_url | append: 'index.html' }}{% endcapture %} {% capture current_page %}{{ site.baseurl }}{{ page.url }}{% endcapture %} {% for p in site.pages %} {% if crumb_with_index != current_page and crumb_with_index == p.url %}
  5. {{ crumb | replace:'-',' ' | capitalize}}
  6. {% break %} {% endif %} {% endfor %} {% endif %} {% endfor %}