Skip to content

Commit

Permalink
fix breadcrumb
Browse files Browse the repository at this point in the history
  • Loading branch information
hjonin committed Jun 19, 2023
1 parent d1edc1d commit 17526e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/components/breadcrumb.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{# Mandatory variable `segments: { url: string, title: string }[]` to make it work #}
{# Works with eleventyNavigation or mandatory variable `segments: { url: string, title: string }[]` to make it work #}
{% if eleventyNavigation %}
{% set segments = collections.all | eleventyNavigationBreadcrumb(eleventyNavigation.key, { includeSelf: true }) %}
{% set segments = collections.all | eleventyNavigationBreadcrumb(eleventyNavigation.key) %}
{% endif %}
<nav role="navigation" class="fr-breadcrumb" aria-label="{{ "you_are_here" | i18n }}:">
<button class="fr-breadcrumb__button" aria-expanded="false"
Expand Down

0 comments on commit 17526e8

Please sign in to comment.