@@ -5,75 +5,43 @@ <h1 class="bd-title">
5
5
{{ .Title }}
6
6
</ h1 >
7
7
{{ if .Description }}
8
- < p class =" bd-lead " >
8
+ < p >
9
9
{{ .Description | markdownify }}
10
10
</ p >
11
11
{{ end}}
12
12
{{ if .Content }}
13
- < p class =" bd-lead " >
13
+ < p >
14
14
{{ .Content | markdownify }}
15
15
</ p >
16
16
{{ end }}
17
17
</ div >
18
18
</ div >
19
19
20
- < section class ="col-md-12 col-xl-12 py-md-3 pl-md-5 " id ="section-content-list ">
21
-
20
+ < section >
22
21
< div class ="row ">
23
22
< div class ="card-deck ">
24
- {{ if .Sections }}
25
- {{ range .Sections }}
26
- < div class ="col-md-5 card ">
27
- < div class ="card-body ">
28
- < h3 class ="card-title ">
29
- < i class ="fas fa-{{if .Page.Params.icon}}{{ .Page.Params.icon }}{{else}}book{{end}} fa-2x card-img-top "> </ i >
30
- < a href ="{{ .Permalink }} "> {{ .Title }}</ a >
31
- </ h3 >
32
- {{/*}}< p class ="card-text ">
33
- {{ if .Description }}{{ .Description | markdownify }}{{ end }}
34
- </ p > {{*/}}
35
- {{ if and (eq .Site.Params.useSectionPageLists "true") (.Pages) }}
36
- < ul class ="card-list ">
37
- {{ range first 5 .Pages.ByWeight }}
38
- < li >
39
- < a href ="{{ .Permalink }} "> {{ .Title }}</ a >
40
- </ li >
41
- {{ end }}
42
- {{ if gt .Pages "5" }}
43
- < li >
44
- < a href ="{{ .Permalink }} "> More...</ a >
45
- </ li >
46
- {{ end }}
47
- </ ul >
48
- {{ end }}
49
- </ div >
50
- </ div >
51
- {{ end }}
52
- {{ end }}
23
+ {{ range .Pages.GroupBy "Section" }}
53
24
54
- {{ range (.Paginate ( where .Pages.ByWeight ".Kind" "!=" "section" )).Pages }}
55
- < div class ="col-md-5 card ">
56
- < div class ="card-body ">
57
- < h3 class ="card-title ">
58
- < i class ="far fa-{{if .Page.Params.icon}}{{ .Page.Params.icon }}{{else}}file-alt{{end}} fa-2x card-img-top "> </ i >
59
- < a href ="{{ .Permalink }} "> {{ .Title }}</ a >
60
- </ h3 >
61
- {{/*}}
62
- < p class ="card-text ">
63
- {{ if .Description }} {{ .Description | markdownify }}{{ end }}
64
- </ p > {{*/}}
65
- </ div >
66
- </ div >
67
- {{ end }}
68
- </ div >
69
- </ div >
70
- </ section >
25
+ {{ range .Pages.ByWeight }}
26
+ < div class ="col-md-5 card ">
27
+ < div class ="card-body ">
28
+ < h3 class ="card-title ">
29
+ < i class ="fas fa-{{if eq .Kind "page "}}file-alt{{else}}book{{end}} fa-2x card-img-top"> </ i >
30
+ < a href ="{{ if .Params.url}}{{ .Params.url}}{{else}}{{ .Permalink }}{{end}} "> {{ .Title }}</ a >
31
+ </ h3 >
32
+ {{/*}}< p class ="card-text ">
33
+ {{ if .Description }}{{ .Description | markdownify }}{{ end }}
34
+ </ p > {{*/}}
35
+
36
+ </ div >
37
+ </ div >
71
38
72
- {{ if not .IsHome }}
73
- < div class ="row justify-content-center ">
74
- {{ partial "pagination.html" . }}
75
- </ div >
76
- {{ end }}
39
+ {{ end }}
40
+ </ div >
41
+ </ div >
42
+ {{ end }}
77
43
44
+
45
+ </ section >
78
46
79
- </ div >
47
+ </ div >
0 commit comments