File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments