{{ $pages := (where .Site.Pages "Section" .Section).ByWeight }} {{ $parent := .Page }} {{ if not $parent.Params.list_pages }} {{/* If list_pages is not true we don't show a list of subpages */}} {{ else if $parent.Params.simple_list }} {{/* If simple_list is true we show a bulleted list of subpages */}} {{ else }} {{/* Otherwise we show a nice formatted list of subpages with page descriptions */}} {{ range $pages }} {{ if eq .Parent $parent }}

{{- .Title -}}

{{ .Description | markdownify }}

{{ end }} {{ end }} {{ end }}