- {{ site.breadcrumbs.hometext | default: "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 %}
{%- if page.lang == "ru" %}
{%- assign breadcrumb = site.data.breadcrumbs_ru[current_breadcrumb_url] %}
{%- else %}
{%- assign breadcrumb = site.data.breadcrumbs[current_breadcrumb_url] %}
{%- endif %}
{%- if breadcrumb %}
-
{{ breadcrumb.title }}
{%- endif %}
{%- endfor %}
{%- if splitted_url_parts.last contains '.html' %}
- {{page.title}}
{%- endif %}