- Home
{% capture page_url_without_index_html %}{{ page.url | remove: "/index.html" }}{% endcapture %}
{% assign splitted_url_parts = page_url_without_index_html | split: '/' %}
{% capture forLoopMaxInt %}{{ splitted_url_parts.size | minus: 1 }}{% endcapture %}
{% for i in (1..forLoopMaxInt) %}
{% capture current_breadcrumb_url %}{{next_prepender}}/{{ splitted_url_parts[i] }}{% endcapture %}
{% capture next_prepender %}{{next_prepender}}/{{ splitted_url_parts[i] }}{% endcapture %}
{% assign breadcrumb = site.data.breadcrumbs[current_breadcrumb_url] %}
{% if breadcrumb %}
-
{{ breadcrumb.title }}
{% endif %}
{% endfor %}
{% if splitted_url_parts.last contains '.html' %}
- {{page.title}}
{% endif %}