Websites and Tech

Static Site Generator

Also called SSG

A tool that builds a website's pages as ready-made HTML files in advance, so they can be served quickly without a database.

Quick facts: Static Site Generator

Category
Websites and Tech
Also called
SSG
Level
Advanced
Affects
Page speed, security, hosting cost, ease of editing
Where to see it
Hugo, Eleventy, Astro, Jekyll, Netlify or Cloudflare Pages, a headless CMS
In this article4
  1. How a static site generator works
  2. Why it matters
  3. Common mistakes
  4. How to act on it

A static site generator is a tool that builds every page of a website in advance, turning content files and templates into plain HTML files that can be served to visitors instantly. Nothing is assembled when someone visits; the pages already exist.

How a static site generator works

A traditional CMS such as WordPress builds each page on request: a visitor arrives, the server runs code, queries a database, stitches the result into a template and sends it back. Caching softens that work, but the machinery is always running.

A static site generator moves the work to build time. Content is written as Markdown files or pulled from a headless CMS, templates define the layout, and a build command produces a folder of finished HTML, CSS and image files. Common generators include Hugo, Eleventy, Jekyll and Astro, and frameworks such as Next.js can export static pages too.

That folder is uploaded to a host or straight to a content delivery network, which stores copies close to visitors. Changes usually go through version control: an edit is committed, the site rebuilds automatically, and the new files go live in a minute or two. Anything interactive, such as contact forms, search or bookings, is handled by separate services or small pieces of JavaScript.

Why it matters

The advantages are real. Pre-built pages load very quickly because the server has almost nothing to do, which helps Core Web Vitals. There is no database or login page exposed to the internet, so the attack surface is tiny and there are no plugin updates to chase. Hosting on a CDN is cheap and copes easily with sudden traffic, such as a mention on national radio.

The trade-offs land on the people who run the site. Editing usually means working with files and a code repository unless someone adds a headless CMS. Features that WordPress plugins provide in a click, like redirects, XML sitemaps, schema markup and editable meta titles, have to be built into the templates deliberately. For a marketing team that publishes several times a week without a developer, that can be a real obstacle.

A static site suits a technical consultancy, a SaaS company’s documentation or a small professional firm in Edinburgh with a developer on hand. It is a weaker fit for a business whose staff need to edit pages daily or run a large shop.

Common mistakes

  • Forgetting SEO basics in the templates. Unique titles, meta descriptions, canonical tags and a sitemap are not automatic in every generator.
  • No redirect plan when moving from a CMS. URLs often change format, such as dropping or adding trailing slashes, and every old address needs a redirect rule at the host.
  • Relying on client-side rendering. Some setups ship a nearly empty HTML page and build content in the browser. That undoes the main advantage and raises JavaScript SEO problems.
  • Leaving editors stranded. If only one developer can publish a change, the site will go stale.
  • Ignoring forms and consent. Third-party form handlers still process personal data, so they belong in your privacy notice under UK GDPR.

How to act on it

If someone proposes a static site, ask who will edit content, how they will do it and how long a change takes to appear. Ask how redirects, sitemaps, meta titles and structured data are handled, and view the page source of a sample page to confirm the content is present in the HTML rather than loaded later by scripts.

If you already run one, crawl it as you would any site and check Search Console for indexing gaps. Choosing a platform that your team can actually run is one of the first decisions I work through in a website redesign, because the fastest site in the world does little good if nobody can update it.

Do and do not

Do

  • Build titles, canonicals and a sitemap into the templates
  • Plan redirects before moving from a CMS
  • Give editors a way to publish without a developer

Do not

  • Render the main content only in the browser
  • Assume plugin features exist by default
  • Choose it if staff need to edit pages daily with no support

Questions people ask about this

Are static websites good for SEO?

They can be excellent, because pages are fast, stable and fully present in the HTML that Google reads. The catch is that SEO features have to be built in on purpose rather than added by a plugin. A static site with no titles, sitemap or redirects will do worse than a well-configured WordPress site.

Can I edit a static site without knowing code?

Yes, if a headless CMS or a Git-based editor is connected to it. These give you a familiar editing screen, and saving triggers a rebuild of the site. Without one, changes mean editing text files and committing them to a repository, which suits developers more than marketing teams.

Is a static site generator cheaper than WordPress?

Hosting is often cheaper, sometimes free on CDN platforms for small sites, and there are no plugin licences or security clean-ups. Build and change costs can be higher, because more of the work needs a developer. Compare the total cost over two or three years, including who will make routine updates.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.