{{ define "main" }} {{- $controls := .RegularPagesRecursive }}
{{ partial "breadcrumb.html" . }}

{{ if .Parent.IsHome }}Catalog{{ else }}Provider{{ end }}

{{ .Title }}

{{- with .Description }}

{{ . }}

{{- end }}

{{ len $controls }} {{ if eq (len $controls) 1 }}control{{ else }}controls{{ end }} {{- with .OutputFormats.Get "json" }} ยท index.json{{ end }}

{{- with .Content }}
{{ . }}
{{- end }} {{- with .Sections }} {{- end }}

{{ if .Parent.IsHome }}All controls{{ else }}Controls{{ end }}

{{ partial "controls-table.html" (dict "pages" $controls) }}
{{ end }}