diff --git a/layouts/section-index/list.html b/layouts/section-index/list.html index 139295b8dd..c67e536494 100644 --- a/layouts/section-index/list.html +++ b/layouts/section-index/list.html @@ -8,14 +8,19 @@
- {{ range .Page.Pages }} -
-
- {{- if .Params.icon -}} + {{ $pages := (where .Site.Pages "Section" .Section).ByWeight }} + {{ $parent := .Page }} + + {{ range $pages }} + {{ if eq .Parent $parent }} +
+
+ {{- if .Params.icon -}} {{- partial "icon.html" .Params.icon -}}{{- end -}}{{- .Title -}} -
-

{{ .Description }}

-
+
+

{{ .Description }}

+
+ {{ end }} {{ end }}