{{ define "main" }} {{- $child_of_first_section := false -}} {{- with .Parent -}} {{- if eq .CurrentSection .FirstSection -}} {{- $child_of_first_section = true -}} {{- end -}} {{- end -}}
{{ $hasContent := false }} {{ with .File }} {{ if ne .Filename "" }} {{ $hasContent = (ge (len $.RawContent) 100) }} {{ end }} {{ end }} {{ if $hasContent }} {{- if $child_of_first_section -}} {{ partial "docs/top-section-page" (dict "ctx" $ "page" $ ) }} {{- else -}} {{ partial "docs/content-page" (dict "ctx" $ "page" $ ) }} {{- end -}} {{ else }}

{{ .Title }}

{{ with .Params.description }}
{{ . | markdownify }}
{{ end }} {{ end }} {{ partial "section-index.html" . }}
{{ end }} {{ define "hero" }} {{- $child_of_first_section := false -}} {{- with .Parent -}} {{- if eq .CurrentSection .FirstSection -}} {{- $child_of_first_section = true -}} {{- end -}} {{- end -}} {{- if $child_of_first_section -}}

{{ .Title }}

{{- else -}}
{{- end -}} {{ end }}