File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change 2
2
< div class ="nav flex-md-row ">
3
3
< ol class ="breadcrumb ">
4
4
< li > < a href ="/ " alt ="NGINX Docs Home "> Home</ a > </ li >
5
-
6
- {{ define "breadcrumb" }}
7
-
8
- {{ with .Parent }}
9
- {{ template "breadcrumb" . }}
10
- < li > {{ if .IsHome }}< i class ="fas fa-chevron-right "> </ i > < a href ="{{ .RelPermalink }} "> {{ .Site.Title}}</ a > {{ else }}< a href ="{{ .RelPermalink }} "> {{ .Title }}{{ end }}</ a > < i class ="fas fa-chevron-right "> </ i > </ li >
11
- {{ end }}
12
- {{ end }}
13
-
14
- {{ if not .IsHome }}
15
-
16
- {{ template "breadcrumb" . }}
17
- {{.Title}}
5
+ {{- define "breadcrumb" -}}
6
+ {{- with .Parent -}}
7
+ {{- template "breadcrumb" . -}}
8
+ < li > {{- if .IsHome -}}< i class ="fas fa-chevron-right "> </ i > < a href ="{{ .RelPermalink }} "> {{ .Site.Title}}</ a > {{ else }}< a href ="{{ .RelPermalink }} "> {{ .Title }}{{ end }}</ a > < i class ="fas fa-chevron-right "> </ i > </ li >
9
+ {{- end -}}
10
+ {{- end -}}
11
+ {{- if not .IsHome -}}
12
+ {{- template "breadcrumb" . -}}
13
+ {{- .Title -}}
18
14
</ ol >
19
15
</ div >
20
16
</ nav >
You can’t perform that action at this time.
0 commit comments