{{/* section label: Price list about: A menu or a list of services, in groups, with prices. fields: - { name: heading, type: text, default: Menu } - { name: intro, type: markdown } - name: groups type: list fields: - { name: name, type: text, required: true, help: "A heading for the group: Bread, Coffee, Haircuts." } - { name: note, type: text } - name: items type: list fields: - { name: name, type: text, required: true } - { name: description, type: text } - { name: price, type: text, help: "As you'd write it: $8, from €40, Ask us." } - { name: tags, type: list, help: "Small labels: vegan, new, spicy." } - { name: from, type: data, label: List from, help: A file in data/ that holds the groups. Leave empty to use the groups above. } - { name: note, type: markdown, label: Below the list, help: Allergy information, taxes, what's included. } */}} {{ $groups := .Data.groups }}{{ with .Data.from }}{{ $groups = data . }}{{ end }} {{ with .Data.heading }}{{ . }}{{ end }} {{ with .Data.intro }}{{ markdownify . }}{{ end }} {{ range $groups }} {{ .name }} {{ with .note }}{{ . }}{{ end }} {{ range .items }} {{ .name }}{{ with .price }}{{ . }}{{ end }} {{ if or .description .tags }}{{ .description }}{{ range .tags }} {{ . }}{{ end }}{{ end }} {{ end }} {{ end }} {{ with .Data.note }}{{ markdownify . }}{{ end }}
{{ . }}
{{ .description }}{{ range .tags }} {{ . }}{{ end }}