Skip to content

Commit 04c1eb9

Browse files
authored
Merge pull request #2754 from ArmDeveloperEcosystem/STESOL-103
STESOL-103: remove "learning-paths" from breadcrumb logic
2 parents 9cdfccd + db92323 commit 04c1eb9

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

themes/arm-design-system-hugo-theme/layouts/partials/header/breadcrumbs.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,12 @@
4242
{{$breadcrumb_title = print "Tag: " .p1.Title}}
4343
{{end}}
4444

45-
<!-- Filter out breadcrumbs we don't want to show: taxonomy pages -->
46-
{{ if and (ne .p1.Title "Learning-paths") (ne .p1.Kind "taxonomy") }}
45+
<!-- define "learning-paths" in RelPermalink to filter out -->
46+
{{$is_learning_paths_section := and .p1.IsSection (eq .p1.RelPermalink "/learning-paths/")}}
47+
48+
<!-- Filter out breadcrumbs we don't want to show: taxonomy pages + learning-paths -->
49+
{{ if and (not $is_learning_paths_section) (ne .p1.Kind "taxonomy") }}
4750
<ads-breadcrumb slot="breadcrumb" label="{{ $breadcrumb_link }}" {{ if ne .p1 .p2 }} link="{{ $breadcrumb_link }}" {{else }} current="true"{{ end }}>{{$breadcrumb_title}}</ads-breadcrumb>
4851
{{end}}
4952

50-
{{ end }}
53+
{{ end }}

0 commit comments

Comments
 (0)