Wrap breadcumbs in navigation element
This commit is contained in:
parent
81853183a4
commit
cae9130a57
|
@ -1,5 +1,7 @@
|
|||
<header class="main__header">
|
||||
{% if isArticle or hasBreadcrumbs %}
|
||||
<nav>
|
||||
<h2 class="visually-hidden">Breadcrumbs</h2>
|
||||
<ul class="breadcrumbs">
|
||||
{% set breadcrumbNavPages = collections.all | eleventyNavigationBreadcrumb(articleTitle or pageTitle or title) %}
|
||||
{%- for entry in breadcrumbNavPages %}
|
||||
|
@ -8,6 +10,7 @@
|
|||
</li>
|
||||
{%- endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
{% endif %}
|
||||
|
||||
<h1>{{ articleTitle or pageTitle or title }}</h1>
|
||||
|
|
Loading…
Reference in New Issue