{#
/**
 * @file
 * Theme override for a breadcrumb trail.
 *
 * Available variables:
 * - breadcrumb: Breadcrumb trail items.
 */
#}
{% if breadcrumb %}
  <nav role="navigation" aria-labelledby="system-breadcrumb">
    <h2 class="visually-hidden" id="system-breadcrumb">
      {{- 'You are here'|t({}, {'context': 'Breadcrumbs'}) -}}
    </h2>
    <ol class="breadcrumb">
    {% for item in breadcrumb %}
      <li class="breadcrumb__item">
        {% if item.url %}
          <a class="breadcrumb__element breadcrumb__link" href="{{ item.url }}">{{ item.text }}</a>
        {% else %}
          <span class="breadcrumb__element">{{ item.text }}</span>
        {% endif %}
      </li>
    {% endfor %}
    </ol>
  </nav>
{% endif %}
