@x-govuk/govuk-eleventy-plugin 6.3.0 → 6.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/layouts/base.njk +1 -1
- package/package.json +1 -1
package/layouts/base.njk
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
{% set breadcrumbItems = collections.all | eleventyNavigationBreadcrumb(eleventyNavigation.key, { includeSelf: includeInBreadcrumbs }) | itemsFromNavigation(page.url, options) if eleventyNavigation.key %}
|
|
17
17
|
{% set minimumItemsInBreadcrumbs = 0 %}
|
|
18
18
|
{% set minimumItemsInBreadcrumbs = 1 if options.parentSite %}
|
|
19
|
-
{% set showBreadcrumbs = options.showBreadcrumbs and breadcrumbItems | length > minimumItemsInBreadcrumbs %}
|
|
19
|
+
{% set showBreadcrumbs = options.showBreadcrumbs != false and breadcrumbItems | length > minimumItemsInBreadcrumbs %}
|
|
20
20
|
|
|
21
21
|
{# Components #}
|
|
22
22
|
{% from "govuk/components/breadcrumbs/macro.njk" import govukBreadcrumbs %}
|