Fix error with missing title to render breadcrumbs
This commit is contained in:
parent
e4e58f6e6a
commit
cf4d7bdf07
|
@ -1,7 +1,7 @@
|
|||
<header class="main__header">
|
||||
{% if isArticle or hasBreadcrumbs %}
|
||||
<ul class="breadcrumbs">
|
||||
{% set breadcrumbNavPages = collections.all | eleventyNavigationBreadcrumb(articleTitle) %}
|
||||
{% set breadcrumbNavPages = collections.all | eleventyNavigationBreadcrumb(articleTitle or title) %}
|
||||
{%- for entry in breadcrumbNavPages %}
|
||||
<li>
|
||||
<a href="{{ entry.url }}" {% if entry.url == page.url %} class="breadcrumbs--active"{% endif %}>{{ entry.title }}</a>
|
||||
|
|
Loading…
Reference in New Issue