{{/* 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" }}
{{ partial "sections/head.html" $s }} {{ with $s.points }} {{ end }} {{ with $s.note }}

{{ . | markdownify }}

{{ end }}
{{ range $i, $f := $s.fields }} {{ $id := printf "lead-%s" $f.name }} {{ $type := $f.type | default "text" }}
{{ if eq $type "select" }} {{ else if eq $type "textarea" }} {{ else }} {{ end }} {{ with $f.hint }}{{ . }}{{ end }}
{{ end }}

We'll use this only to reply to you. No newsletters unless you ask. See our Privacy Policy.