mirror of
https://github.com/helenclx/leilukin-site.git
synced 2025-04-04 09:10:52 +00:00
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…
x
Reference in New Issue
Block a user