1. {{ site.breadcrumbs.hometext | default: "Home" }}
  2. {%- 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 %}
  3. {{ breadcrumb.title }}
  4. {%- endif %} {%- endfor %} {%- if splitted_url_parts.last contains '.html' %}
  5. {{page.title}}
  6. {%- endif %}