Fix error with missing title to render breadcrumbs
This commit is contained in:
parent
a85cab05a0
commit
7d4cffe9ee
@ -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…
x
Reference in New Issue
Block a user