{{ define "main" }}

{{ if eq .CurrentSection .FirstSection }}{{ .Section | humanize }}{{ else }}{{ .Title }}{{ end }}

{{ with .Content }}
{{ . }}
{{ end }}
{{ $currentSection := .CurrentSection }} {{ range where .Site.RegularPages.ByTitle "Section" .Section }} {{ if in (.RelPermalink | string) $currentSection.RelPermalink }}
{{ .Params.title | title }} → {{ with .Description }}

{{ . }}

{{ end }} {{ with .Params.lead }}

{{ . }}

{{ end }}
{{ end }} {{ end }}
{{ end }}