Version 1
[yaffs-website] / web / core / themes / stable / templates / navigation / breadcrumb.html.twig
diff --git a/web/core/themes/stable/templates/navigation/breadcrumb.html.twig b/web/core/themes/stable/templates/navigation/breadcrumb.html.twig
new file mode 100644 (file)
index 0000000..1097683
--- /dev/null
@@ -0,0 +1,25 @@
+{#
+/**
+ * @file
+ * Theme override for a breadcrumb trail.
+ *
+ * Available variables:
+ * - breadcrumb: Breadcrumb trail items.
+ */
+#}
+{% if breadcrumb %}
+  <nav role="navigation" aria-labelledby="system-breadcrumb">
+    <h2 id="system-breadcrumb" class="visually-hidden">{{ 'Breadcrumb'|t }}</h2>
+    <ol>
+    {% for item in breadcrumb %}
+      <li>
+        {% if item.url %}
+          <a href="{{ item.url }}">{{ item.text }}</a>
+        {% else %}
+          {{ item.text }}
+        {% endif %}
+      </li>
+    {% endfor %}
+    </ol>
+  </nav>
+{% endif %}