-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update home text in breadcrumb and add breadcrumbs to home page (…
- Loading branch information
1 parent
81f214a
commit bf13a9a
Showing
2 changed files
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
{% if eleventyNavigation or tags %} | ||
|
||
{% set key = eleventyNavigation.key if eleventyNavigation else tags[0] %} | ||
|
||
{% set navPages = collections.all | eleventyNavigationBreadcrumb(key) %} | ||
|
||
<gcds-breadcrumbs lang="{{ locale }}" slot="breadcrumb"> | ||
<gcds-breadcrumbs-item href={{ breadcrumbs[locale].url | url }}> | ||
{{ breadcrumbs[locale].linkText }} | ||
</gcds-breadcrumbs-item> | ||
{% for item in navPages %} | ||
{% if item.url %} | ||
<gcds-breadcrumbs-item href={{ item.url | url }}> | ||
{{ item.title }} | ||
</gcds-breadcrumbs-item> | ||
{% endif %} | ||
{% endfor %} | ||
{% if eleventyNavigation or tags %} | ||
<gcds-breadcrumbs-item href={{ breadcrumbs[locale].url | url }}> | ||
{{ breadcrumbs[locale].linkText }} | ||
</gcds-breadcrumbs-item> | ||
|
||
{% set key = eleventyNavigation.key if eleventyNavigation else tags[0] %} | ||
|
||
{% set navPages = collections.all | eleventyNavigationBreadcrumb(key) %} | ||
{% for item in navPages %} | ||
{% if item.url %} | ||
<gcds-breadcrumbs-item href={{ item.url | url }}> | ||
{{ item.title }} | ||
</gcds-breadcrumbs-item> | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} | ||
</gcds-breadcrumbs> | ||
{% endif %} |