{{ define "main" }} {{ .Scratch.Set "skipSeeAlso" true }} {{ partial "primary_top.html" . }}

{{ .Description }}

{{ if .Params.content_above }} {{ .Content }} {{ end }}
{{ $pages := (where .Site.Pages "Section" .Section).ByWeight }} {{ $parent := .Page }} {{ if $parent.Params.simple_list }} {{ else }} {{ range $pages }} {{ if eq .Parent $parent }}
{{- if .Params.icon -}} {{- partial "icon.html" .Params.icon -}}{{- end -}}{{- .Title -}}

{{ .Description }}

{{ end }} {{ end }} {{ end }}
{{ if not .Params.content_above }} {{ .Content }} {{ end }} {{ partial "primary_bottom.html" . }} {{ end }}