{{ define "main" }}
{{ partial "docs/sidebar.html" . }}
{{ if .Params.breadcrumbs }} {{ partial "docs/breadcrumbs.html" . }} {{ end }} {{ $sections := .Sections }} {{ if .Params.sort_alphabetically }} {{ $sections = sort .Sections "Title" }} {{ end }}

Featured {{ .Title }}

    {{ range $sections }} {{ if .Params.featured }} {{ partial "components/gallery-item.html" . }} {{ end }} {{ end }}

All {{ .Title }}

{{ .Content }}
    {{ range $sections }} {{ partial "components/gallery-item.html" . }} {{ end }}
{{ end }}