MuxForms on Hugo is a layouts/partials/muxforms-contact.html partial with the div and script, included from content/contact.md. Allow your GitHub Pages, Netlify, or Cloudflare origin.
Docs
Hugo builds fast static HTML—include a partial once and reuse the embed on every contact page.
| File | Role |
|---|---|
| layouts/partials/muxforms.html | Snippet |
| content/contact.md | {{ partial }} call |
| config | baseURL for allowlist hint |
| Deploy | Any static host |
<div data-form-id="{{ .Site.Params.muxFormId | default "FORM_UUID" }}"></div>
<script src="https://www.muxforms.com/embed.js" defer></script>--- title: "Contact" layout: contact ---
{{ define "main" }}
<h1>Contact</h1>
{{ partial "muxforms-contact.html" . }}
{{ end }}Params per environment without rebuilding MuxForms.
Upgrade to Pro