Add a contact form to a Hugo site
Embed a working contact form in a Hugo static site with no server code.
- 1
Create a form partial
Add a Hugo partial (`layouts/partials/contact-form.html`) with a `<form method='POST'>` pointing at FormLoom.
- 2
Add the hidden fields
Include `redirect`, optional `subject`, and the honeypot `botcheck` hidden input.
- 3
Include in your layout
Call `{{ partial "contact-form.html" . }}` in any page template.
FAQ
Yes — it's plain HTML; Hugo outputs it as-is.