File tree 3 files changed +12
-10
lines changed
layouts/partials/hb/modules/breadcrumb
3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change
1
+ < li class ="breadcrumb-item ">
2
+ < a href ="{{ .RelPermalink }} " title ="{{ .Title }} ">
3
+ {{- with .Params.nav_icon }}
4
+ {{- partial "icons/icon" (merge . (dict "color" "" "className" "me-1")) }}
5
+ {{- end }}
6
+ {{- cond .IsHome (i18n "hb_breadcrumb_home") .Title -}}
7
+ </ a >
8
+ </ li >
Original file line number Diff line number Diff line change
1
+ {{- range .Reverse }}
2
+ {{ partialCached "hb/modules/breadcrumb/ancestor" . . }}
3
+ {{- end -}}
Original file line number Diff line number Diff line change 2
2
< div class ="container-fluid px-0 mb-4 ">
3
3
< nav aria-label ="breadcrumb ">
4
4
< ol class ="hb-breadcrumb breadcrumb ">
5
- {{- range .Ancestors.Reverse }}
6
- < li class ="breadcrumb-item ">
7
- < a href ="{{ .RelPermalink }} " title ="{{ .Title }} ">
8
- {{- with .Params.nav_icon }}
9
- {{- partial "icons/icon" (merge . (dict "color" "" "className" "me-1")) }}
10
- {{- end }}
11
- {{- cond .IsHome (i18n "hb_breadcrumb_home") .Title -}}
12
- </ a >
13
- </ li >
14
- {{- end -}}
5
+ {{- partialCached "hb/modules/breadcrumb/ancestors" .Ancestors .Ancestors }}
15
6
< li class ="breadcrumb-item active " aria-current ="page ">
16
7
< a href ="{{ .RelPermalink }} " title ="{{ .Title }} ">
17
8
{{- with .Params.nav_icon }}
You can’t perform that action at this time.
0 commit comments