Make breadcrumb navigation a number list
This commit is contained in:
parent
353b7ba40a
commit
2859ffe2a8
|
@ -2,14 +2,14 @@
|
|||
{% if isArticle or hasBreadcrumbs %}
|
||||
<nav>
|
||||
<h2 class="visually-hidden">Breadcrumbs</h2>
|
||||
<ul class="breadcrumbs">
|
||||
<ol class="breadcrumbs">
|
||||
{% set breadcrumbNavPages = collections.all | eleventyNavigationBreadcrumb(articleTitle or pageTitle or title) %}
|
||||
{%- for entry in breadcrumbNavPages %}
|
||||
<li>
|
||||
<a href="{{ entry.url }}">{{ entry.title }}</a>
|
||||
</li>
|
||||
{%- endfor %}
|
||||
</ul>
|
||||
</ol>
|
||||
</nav>
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue