File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
{{- with .CurrentSection }}
3
3
{{- $pages = .Pages }}
4
4
{{- end }}
5
- {{- $sortedPages := sort (where $pages "Params.navWeight" "> " 0 ) "Params.navWeight" "desc" -}}
6
- {{- $pages = union $sortedPages (sort $pages "Title ") -}}
5
+ {{- $sortedPages := sort (where $pages "Params.navWeight" "ne" nil ) "Params.navWeight" "desc" -}}
6
+ {{- $pages = union $sortedPages (sort $pages "LinkTitle ") -}}
7
7
{{- $prev := false }}
8
8
{{- $next := false }}
9
9
{{- range $i, $page := $pages }}
Original file line number Diff line number Diff line change 17
17
{{- $page := .page -}}
18
18
< ul class ="list-unstyled mb-2 w-100 ">
19
19
{{- $expand := default false .page.Site.Params.docs.nav.expand -}}
20
- {{- $pages := sort (where $section.Pages "Params.navWeight" "> " 0 ) "Params.navWeight" "desc" -}}
21
- {{- $pages = union $pages (sort $section.Pages "Title ") -}}
20
+ {{- $pages := sort (where $section.Pages "Params.navWeight" "ne" nil ) "Params.navWeight" "desc" -}}
21
+ {{- $pages = union $pages (sort $section.Pages "LinkTitle ") -}}
22
22
{{- range $pages -}}
23
23
{{- if .IsSection -}}
24
24
{{- $sectionId := printf "nav-%s" .File.UniqueID -}}
You can’t perform that action at this time.
0 commit comments