File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed
themes/opentermsarchive/layouts/partials Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 10
10
< details {{ if eq $currentPageSection .Section }}open{{ end }} >
11
11
< summary > < b > {{ .LinkTitle | markdownify }}</ b > </ summary >
12
12
< ul >
13
- {{ range .RegularPages.ByWeight }}
14
- < li >
15
- < a href ="{{ .RelPermalink }} "> {{ .LinkTitle | markdownify }}</ a >
16
- </ li >
17
- {{ end }}
18
- {{ range .Sections.ByWeight }}
13
+ {{ $allPages := .RegularPages.ByWeight | append .Sections.ByWeight }}
14
+ {{ $allPages := sort $allPages "Weight" }}
15
+ {{ range $allPages }}
19
16
< li >
20
17
{{ if .Content }}
21
- < a href ="{{ .RelPermalink }} "> {{ .LinkTitle | markdownify }}</ a >
18
+ < a href ="{{ .RelPermalink }} "> {{ .LinkTitle | markdownify }}</ a >
22
19
{{ else }}
23
- < span > {{ .LinkTitle | markdownify }}</ span >
20
+ < span > {{ .LinkTitle | markdownify }}</ span >
21
+ {{ end }}
22
+ {{ if .IsSection }}
23
+ < ul >
24
+ {{ range .RegularPages.ByWeight }}
25
+ < li > < a href ="{{ .RelPermalink }} "> {{ .LinkTitle | markdownify }}</ a > </ li >
26
+ {{ end }}
27
+ </ ul >
24
28
{{ end }}
25
- < ul >
26
- {{ range .RegularPages.ByWeight }}
27
- < li > < a href ="{{ .RelPermalink }} "> {{ .LinkTitle | markdownify }}</ a > </ li >
28
- {{ end }}
29
- </ ul >
30
29
</ li >
31
30
{{ end }}
32
31
</ ul >
You can’t perform that action at this time.
0 commit comments