{{/* section label: Team about: The people from the team collection, with their photos and roles. fields: - { name: heading, type: text, default: The team } - { name: intro, type: markdown } - { name: collection, type: collection, default: people, label: People from } - { name: count, type: number, default: 0, label: How many, help: 0 shows everyone. } */}} {{ $c := default "people" .Data.collection }}{{ $people := collection $c }}{{ with .Data.count }}{{ if gt . 0 }}{{ $people = limit . $people }}{{ end }}{{ end }}
{{ with .Data.heading }}

{{ . }}

{{ end }} {{ with .Data.intro }}
{{ markdownify . }}
{{ end }} {{ with .Data.count }}{{ if gt . 0 }}

Everyone

{{ end }}{{ end }}