{{ $pages := (where .Site.Pages "Section" .Section).ByWeight }} {{ $parent := .Page }} {{ if $parent.Params.no_list }} {{/* If no_list is 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 }}