{{/* A lead form: the heading, lede, and an optional `points` list on the left; the form on the right. `fields` take `name`, `label`, `type` (text, email, number, select, textarea; default text), optional `options` (select), `placeholder`, `hint`, `required`, and `half: true` to sit two to a row. `submit` labels the button; `subject` names the lead (e.g. "Partner platform"); `success` is shown once it's sent. Where it goes: `[params.leads] action` in hugo.toml. When set, the form POSTs its fields there (with `source` and `page` added) and shows `success`. When empty, it opens an email to `[params.leads] email` with the answers filled in, so leads still arrive before a backend exists. Without JS, the form falls back to a plain POST (or mailto) of the same. */}} {{ $s := . }} {{ $leads := site.Params.leads | default dict }} {{ $action := $leads.action | default "" }} {{ $email := $leads.email | default site.Params.supportEmail }} {{ $subject := $s.subject | default "Website inquiry" }}
{{ . | markdownify }}
{{ end }}