Skip to content

Commit

Permalink
Merge pull request #84 from BlueSlug/fix/remove-subsection-links-GH-65 (
Browse files Browse the repository at this point in the history
resolves #65)

fix: remove subsection links from breadcrumb
  • Loading branch information
cindyli authored Apr 6, 2022
2 parents 779e342 + 4ef251d commit 4e19cec
Show file tree
Hide file tree
Showing 9 changed files with 347 additions and 835 deletions.
1,170 changes: 338 additions & 832 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/_includes/partials/components/breadcrumb.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<ul class="breadcrumb__list">
{% for item in collections.all | eleventyNavigationBreadcrumb(eleventyNavigation.key, { includeSelf: true }) %}
<li class="breadcrumb__item">
{% if item.url == page.url %}
{# if it's the current page, no link is provided #}
{% if item.url == page.url or item.disableBreadcrumbLink === true %}
{# if it's the current page or if the front matter specifies so, no link is provided #}
<span>{{ item.title }}</span>
{% else %}
<a class="breadcrumb__link" href="{{ item.url | url }}">{{ item.title }}</a>
Expand Down
1 change: 1 addition & 0 deletions src/collections/approaches/en-CA/CoCreation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ eleventyNavigation:
parent: Approaches
key: Co-Creation
order: 4
disableBreadcrumbLink: true
---
1 change: 1 addition & 0 deletions src/collections/approaches/en-CA/GoodPractices.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ eleventyNavigation:
key: Good Practices
order: 1
intro: The following practices reflect ongoing work. In the spirit of continuous improvement they will be updated and added to from time to time.
disableBreadcrumbLink: true
---
1 change: 1 addition & 0 deletions src/collections/approaches/en-CA/InclusiveAssessment.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ eleventyNavigation:
parent: Approaches
key: Inclusive Assessment
order: 3
disableBreadcrumbLink: true
---
1 change: 1 addition & 0 deletions src/collections/approaches/en-CA/InclusiveAuthoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ eleventyNavigation:
parent: Approaches
key: Inclusive Authoring
order: 2
disableBreadcrumbLink: true
---
2 changes: 1 addition & 1 deletion src/collections/techniques/en-CA/AccessForAll.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Access for All
eleventyNavigation:
key: Accessibility Assessment Tools
key: Access for All
---
AccessForAll accessibility promotes an inclusive learning experience by enabling the matching of the characteristics of
resources to the needs and preferences of individual learners. In circumstances where resources might not be, or even
Expand Down
1 change: 1 addition & 0 deletions src/collections/techniques/en-CA/AuthoringContent.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ eleventyNavigation:
parent: Techniques
key: Authoring Content
order: 1
disableBreadcrumbLink: true
---
1 change: 1 addition & 0 deletions src/collections/techniques/en-CA/TestingAndEvaluation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ eleventyNavigation:
parent: Techniques
key: Testing and Evaluation
order: 2
disableBreadcrumbLink: true
---

0 comments on commit 4e19cec

Please sign in to comment.