{{/* section
label: Recipes
about: The latest recipes, with their photos.
fields:
- { name: heading, type: text, default: Recipes }
- { name: collection, type: collection, default: recipes, label: Recipes from }
- { name: count, type: number, default: 3, label: How many }
*/}}
{{ $c := default "recipes" .Data.collection }}
{{ with .Data.heading }}
{{ . }}
{{ end }}
{{ range limit (default 3 .Data.count) (collection $c) }}{{ template "recipe-card" . }}{{ end }}
Every recipe