Add a contact form to your static site: Astro, Hugo, 11ty, Jekyll
One snippet in your layout template. Works in Astro, Hugo, 11ty, Jekyll, and every other static-site generator.
<script src="https://cdn.toimii.io/components/your-code.js" async></script>
<toimii-your-code></toimii-your-code>
Step by step
Gotchas
Frequently asked
How do I add it in Astro, Hugo, 11ty or Jekyll?
Nothing differs between them — the steps above are the whole procedure in all four. We give no file path for the template on purpose: each generator names that file differently and the names have changed between versions, so check your own generator's docs.
Does it work on GitHub Pages, Netlify, Vercel or Cloudflare Pages?
Yes, and on any other host that serves static files — nothing runs on your side. What matters is the address rather than the host: submissions are accepted only from the domain you listed in Toimii, so a preview build on the host's own subdomain renders the form but refuses the message.
Will it slow down my build?
No. The script loads at runtime, not build time — your build emits the script tag and the browser fetches the actual component when a visitor hits the page. Astro, Hugo, 11ty, Jekyll: all unaffected.
Embedding on a different platform?
Same two lines of code, picked apart for each platform.
Ready to try it?
30-day free trial. No credit card. Set up in minutes.
No credit card required. Set up in 2 minutes.