{{/* section label: Contact form about: A form from forms/ beside your email, phone, address and a note, such as when you answer. fields: - { name: heading, type: text, default: Get in touch } - { name: intro, type: markdown } - { name: form, type: text, default: contact, required: true, help: "The form's name: a file in forms/, such as contact, quote, booking or signup." } - { name: email, type: text, label: Email } - { name: phone, type: text, label: Phone } - { name: address, type: textarea, label: Address } - { name: note, type: markdown, label: Beside the form, help: "Opening hours, how soon you answer, or anything else." } */}} {{ $d := .Data }}{{ $side := or $d.email $d.phone $d.address $d.note }} {{ with $d.heading }}{{ . }}{{ end }} {{ with $d.intro }}{{ markdownify . }}{{ end }} {{ form (default "contact" $d.form) }} {{ if $side }} {{ end }}