Initial Drupal 11 with DDEV setup
This commit is contained in:
25
web/core/themes/claro/templates/breadcrumb.html.twig
Normal file
25
web/core/themes/claro/templates/breadcrumb.html.twig
Normal file
@ -0,0 +1,25 @@
|
||||
{#
|
||||
/**
|
||||
* @file
|
||||
* Theme override for a breadcrumb trail.
|
||||
*
|
||||
* Available variables:
|
||||
* - breadcrumb: Breadcrumb trail items.
|
||||
*/
|
||||
#}
|
||||
{% if breadcrumb %}
|
||||
<nav class="breadcrumb" role="navigation" aria-labelledby="system-breadcrumb">
|
||||
<h2 id="system-breadcrumb" class="visually-hidden">{{ 'Breadcrumb'|t }}</h2>
|
||||
<ol class="breadcrumb__list">
|
||||
{% for item in breadcrumb %}
|
||||
<li class="breadcrumb__item">
|
||||
{% if item.url %}
|
||||
<a href="{{ item.url }}" class="breadcrumb__link">{{ item.text }}</a>
|
||||
{% else %}
|
||||
{{ item.text }}
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
</nav>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user