{{/* section
label: Testimonials
about: Quotes from people you work with, each with a name and a role.
fields:
- { name: heading, type: text, default: What people say }
- { name: intro, type: markdown }
- name: items
type: list
label: Quotes
fields:
- { name: quote, type: textarea, required: true }
- { name: name, type: text, required: true, help: As the person agreed to be named. }
- { name: role, type: text, help: "Their role, or where they're from: Customer since 2019, Owner of The Corner Shop." }
- { name: from, type: data, label: Quotes from, help: A file in data/ that holds the quotes, to share them between pages. Leave empty to use the quotes above. }
*/}}
{{ $items := .Data.items }}{{ with .Data.from }}{{ $items = data . }}{{ end }}
{{ with .Data.heading }}
{{ . }}
{{ end }}
{{ with .Data.intro }}
{{ markdownify . }}
{{ end }}
{{ range $items }}
{{ .quote }}
{{ .name }}{{ with .role }}{{ . }}{{ end }}
{{ end }}