In this article · 11 sections
- 01How each one works
- 02Comparing the two
- 03Strengths of a static site generator
- 04Strengths of a traditional CMS
- 05When a static generator fits best
- 06When a traditional CMS fits best
- 07Handling dynamic features on a static site
- 08Think about your editors
- 09Migration and long-term thinking
- 10Decision checklist
- 11Final thoughts
Key takeaways
- A traditional CMS such as WordPress builds pages from a database on each request; a static site generator such as Astro or Hugo builds every page ahead of time.
- Static sites are typically faster, more secure and cheaper to host, because no database or server code runs when a visitor arrives.
- A CMS gives non-technical editors a visual admin, a huge plugin ecosystem and instant publishing without a build step.
- A headless CMS bridges the two: editors get a friendly interface while a static front end keeps the speed.
- Choose by who edits the site and how often content changes; static suits marketing sites, blogs and docs, a CMS suits large editorial teams.
When planning a website, one of the first questions is how it will be built and edited. Two broad approaches dominate: a traditional content management system (CMS) that builds pages on demand from a database, and a static site generator (SSG) that builds all pages ahead of time into plain files. Both can power excellent sites. The right choice depends on who edits content, how often it changes and how much customisation you need.
How each one works
Traditional CMS
Platforms such as WordPress, Drupal or Joomla store content in a database. When a visitor requests a page, the server assembles it from templates and data, then sends it back. Editors use a browser-based admin screen, usually with a visual editor and a large library of plugins.
Static site generator
Tools such as Astro, Hugo, Eleventy or Jekyll combine templates with content, often written in Markdown or pulled from an API, and produce finished HTML, CSS and JavaScript files during a build step. These files are then uploaded to a host or CDN and served as they are. No database or server-side code runs when a visitor arrives.
A third option, a headless CMS, separates editing from presentation: editors use a friendly admin interface, and a static generator or app fetches the content through an API.
Comparing the two
| Factor | Traditional CMS | Static site generator |
|---|---|---|
| Speed | Depends on hosting and caching | Typically very fast, pre-built files served from a CDN |
| Security | Larger attack surface (database, plugins, logins) | Smaller surface, no server code at request time |
| Editing experience | Familiar visual admin for non-technical staff | Often Markdown and Git, or a headless CMS for a friendlier editor |
| Hosting cost | Needs a server running PHP or similar and a database | Can be hosted cheaply or free on static platforms |
| Maintenance | Regular core, theme and plugin updates | Fewer moving parts, dependencies still need updating |
| Flexibility | Huge plugin ecosystem | Full control over code, but fewer ready-made plugins |
| Dynamic features | Built in (comments, memberships, e-commerce) | Added through APIs, serverless functions or third-party services |
| Content changes | Live as soon as saved | Needs a rebuild and deploy to go live |
Strengths of a static site generator
- Performance: serving ready-made files helps pass Core Web Vitals. See our checklist for speeding up your site.
- Security: with no database or login system exposed, many common attacks are not possible.
- Reliability: static files survive traffic spikes easily.
- Version control: content and code live together, so every change is tracked and reversible.
- Low running costs.
Strengths of a traditional CMS
- Editor-friendly: non-technical teams can publish without developer help.
- Rich ecosystem: themes and plugins for almost any feature.
- Built-in dynamic functionality: user accounts, comments, search and online shops.
- Instant publishing, with no build step.
When a static generator fits best
- Marketing sites, portfolios, documentation and blogs
- Sites where performance and SEO are priorities
- Teams comfortable with developer workflows, or using a headless CMS
- Content that changes weekly rather than every minute
When a traditional CMS fits best
- Large editorial teams publishing constantly
- Sites with heavy dynamic functionality, such as memberships or complex e-commerce
- Organisations without developer support who need to manage everything themselves
Handling dynamic features on a static site
Static does not mean lifeless. Common patterns include:
- Forms handled by serverless functions or form services
- Search using a client-side index or a hosted search service
- Comments through third-party systems
- Authentication and payments through dedicated providers
- Scheduled content by rebuilding the site on a timer
This site uses that approach: pages are generated ahead of time and a small serverless function handles the contact form.
Think about your editors
The deciding factor is often the people who update the site. A technical team may love editing Markdown in a Git repository. A marketing team may prefer a visual editor. A headless CMS can bridge the gap, giving editors a friendly interface while keeping the speed of a static front end.
Migration and long-term thinking
Content you write in portable formats such as Markdown moves between tools easily. A site built on proprietary database structures can be harder to leave. Whichever route you choose, keep your URLs stable and set up redirects if you ever change platforms, so you do not lose search visibility. Our technical SEO checklist covers this.
Decision checklist
- Who edits content, and how technical are they?
- How often does content change?
- Do you need user accounts, e-commerce or other dynamic features?
- How important is raw speed and low hosting cost?
- Do you have developers to maintain the build?
- Is content stored in a portable format?
Final thoughts
Neither approach is universally better. Pick the one that fits your team and your content, and be honest about trade-offs. If you would like help choosing and building the right foundation, see our web development service or contact us.
Frequently asked questions
Is a static site better than WordPress?
For marketing sites, blogs and documentation, a static site is usually faster, more secure and cheaper to run. WordPress is better when non-technical teams publish constantly or need built-in memberships, comments or complex e-commerce.
Can a static website have forms and search?
Yes. Forms can use serverless functions or form services, search can use a client-side index or hosted service, and logins and payments can use dedicated providers.
What is a headless CMS?
A headless CMS stores and edits content but does not render pages. A static generator or app fetches the content through an API, so editors get a friendly interface and the site stays fast.
Do static sites need maintenance?
Less than a CMS, since there are no core, theme or plugin updates on a live server, but build dependencies still need updating.