Flat-file CMS or static site generator?
Both keep your content in text files instead of a database. The difference is when the HTML page is made and what runs on the server.
| Flat-file CMS | Static site generator | |
|---|---|---|
| When pages are built | On each visit, on the server (usually cached) | In advance, before upload |
| What the server runs | PHP or another runtime | Nothing, it serves plain files |
| Editing | Usually an admin panel in the browser | Files in an editor, then rebuild; add-on CMS possible |
| Hosting | PHP webspace, shared hosting is fine | Any static host, often free (Cloudflare Pages, Netlify, GitHub Pages) |
| Security | A CMS runtime on the server that needs updates | A smaller server-side attack surface, but build tools, dependencies and accounts still need care |
| Forms, search, logins | Built in or via plugins | External services; search can also run in the browser |
| Typical users | Site owners, editors, agencies with clients | Developers comfortable with Git and the command line |
| Examples | Grav, Kirby, WonderCMS | Hugo, Jekyll, Eleventy |
Where the line blurs
Some systems do both. Datenstrom Yellow can generate a static site, and Statamic and Kirby can export static pages with an add-on. In the directory, look for "Static export".
Which one should you pick?
If people who don't write code will edit the site, or you need forms and logins without extra services, pick a flat-file CMS. If you are a developer and want cheap hosting with no CMS running on the server, a static site generator is often the better fit.