GitHub Pages · Hugo · Astro · Cloudflare Pages

How to add a contact form to a static site.

A static host only serves files. It cannot process method="POST". You point the form at a form backend. smote is that backend.

The HTML

<form action="https://smote.sh/f/FORM_ID" method="POST">
  <input name="email" type="email" required>
  <textarea name="message" required></textarea>
  <input type="hidden" name="_redirect" value="https://yoursite.com/thanks">
  <button>Send</button>
</form>

Create a form in the dashboard, replace FORM_ID, deploy. Works on GitHub Pages, Hugo, Jekyll, Eleventy, Astro, Cloudflare Pages, and a lone index.html.

Why not Netlify Forms or a Worker?

Netlify Forms only work if you stay on Netlify. A Worker or PHP is a backend you have to keep. smote is one action URL. Change hosts; the form still posts here.

What you get

Replies in the inbox, email when something arrives, CSV export, optional signed webhook. Text fields only — no file uploads.

Get an action URL Full docs

Also: GitHub Pages · Hugo · Astro · Jekyll · Cloudflare Pages