Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / profiles / demo_umami / themes / umami / templates / components / navigation / breadcrumb.html.twig
1 {#
2 /**
3  * @file
4  * Theme override for a breadcrumb trail.
5  *
6  * Available variables:
7  * - breadcrumb: Breadcrumb trail items.
8  */
9 #}
10 {% if breadcrumb %}
11   <nav class="breadcrumb" role="navigation" aria-labelledby="system-breadcrumb">
12     <h2 id="system-breadcrumb" class="visually-hidden">{{ 'Breadcrumb'|t }}</h2>
13     <ol>
14     {% for item in breadcrumb %}
15       <li>
16         {% if item.url %}
17           <a href="{{ item.url }}">{{ item.text }}</a>
18         {% else %}
19           {{ item.text }}
20         {% endif %}
21       </li>
22     {% endfor %}
23     {#
24       Once the breadcrumb loop completes, we add the current page title.
25       This variable is created in umami.theme.
26     #}
27     <li> {{ current_page_title }}</li>
28     </ol>
29   </nav>
30 {% endif %}