File tree Expand file tree Collapse file tree 3 files changed +32
-3
lines changed
themes/docsy/layouts/partials Expand file tree Collapse file tree 3 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 1
1
{{ define "main" }}
2
2
{{ .Render "content" }}
3
- {{ end }}
3
+ {{ end }}
Original file line number Diff line number Diff line change
1
+ < div class ="section-index ">
2
+ {{ $pages := (where .Site.Pages "Section" .Section).ByWeight }}
3
+ {{ $parent := .Page }}
4
+ {{ if $parent.Params.no_list }}
5
+ {{/* If no_list is true we don't show a list of subpages */}}
6
+ {{ else if $parent.Params.simple_list }}
7
+ {{/* If simple_list is true we show a bulleted list of subpages */}}
8
+ < ul >
9
+ {{ range $pages }}
10
+ {{ if eq .Parent $parent }}
11
+ < li > < a href ="{{ .RelPermalink }} "> {{- .Title -}}</ a > </ li >
12
+ {{ end }}
13
+ {{ end }}
14
+ </ ul >
15
+ {{ else }}
16
+ {{/* Otherwise we show a nice formatted list of subpages with page descriptions */}}
17
+ < hr class ="panel-line ">
18
+ {{ range $pages }}
19
+ {{ if eq .Parent $parent }}
20
+ < div class ="entry ">
21
+ < h3 >
22
+ < a href ="{{ .RelPermalink }} "> {{- .Title -}}</ a >
23
+ </ h3 >
24
+ < p > {{ .Description | markdownify }}</ p >
25
+ </ div >
26
+ {{ end }}
27
+ {{ end }}
28
+ {{ end }}
29
+ </ div >
Original file line number Diff line number Diff line change 18
18
{{ range $pages }}
19
19
{{ if eq .Parent $parent }}
20
20
< div class ="entry ">
21
- < h3 >
21
+ < h5 >
22
22
< a href ="{{ .RelPermalink }} "> {{- .Title -}}</ a >
23
- </ h3 >
23
+ </ h5 >
24
24
< p > {{ .Description | markdownify }}</ p >
25
25
</ div >
26
26
{{ end }}
You can’t perform that action at this time.
0 commit comments