Drop a form partial into a Hugo site and collect messages through Formcask.
Hugo generates HTML only. There is no server in a normal Hugo deploy, so the form must POST to a host-independent endpoint.
Put a partial at layouts/partials/contact-form.html (Hugo 0.146+ also looks in layouts/_partials/):
<form action="https://formcask.com/f/f_YOUR_FORM_ID" method="POST">
<p><label>Name <input type="text" name="name" required></label></p>
<p><label>Email <input type="email" name="email" required></label></p>
<p><label>Message <textarea name="message" required></textarea></label></p>
<input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off">
<input type="hidden" name="_redirect" value="{{ "/thanks/" | absURL }}">
<button type="submit">Send</button>
</form>
Set baseURL in hugo.toml so absURL produces a full https:// thank-you link. Formcask only follows _redirect values that start with http or https. If the thank-you page is on another host, hard-code that absolute URL instead.
Include the partial from a contact layout or a shortcode. Rebuild with hugo as usual. No Hugo module, theme hook, or serverless function is required. Deploy the output to GitHub Pages, Netlify, Vercel, or any other static host.
Agencies can put each client site in its own Formcask workspace on the Pro or Agency plan.
Related: Plain HTML · Jekyll · Eleventy · GitHub Pages