Eleventy

Eleventy is the generator that does least by default and hides least when you add to it. It writes the HTML your templates produce and nothing else, which makes it predictable at scale and means many production concerns — minification, image processing, highlighting, sitemaps — are small pieces of configuration you own. The guides below are mostly those pieces, each measured on real sites from a few hundred to 10,000 pages.

Build speed runs through many of them: incremental mode, caching processed images between CI runs, and where Eleventy is faster or slower than Astro on the same documentation corpus. If you are choosing between the two, start with the comparisons at the top.

Built-in behaviour compared with what Eleventy sites configure themselves Two panels. Built in: templates to HTML, the data cascade, pagination, passthrough copy and incremental mode. Configured yourself, with guides below: image processing, minification, syntax highlighting, sitemaps and feeds, and search indexes. What Eleventy leaves to you Built in templates to HTML data cascade pagination incremental mode You configure eleventy-img pipelines minification Shiki highlighting sitemaps, feeds, search
The right panel is where most of the Eleventy guides on this site live.

Choosing the Right Static Site Generator for Production

Number of Eleventy guides of each kind Vertical bars: How-tos 25, Fixes 2, Comparisons 9 and Concepts 3. Eleventy guides by kind 25 How-tos 2 Fixes 9 Comparisons 3 Concepts
39 guides use Eleventy in depth; each is listed below under the section it belongs to.

Core Web Vitals Optimization for SSGs

  • Art Direction with the Picture ElementHow-toServe different crops of a hero image to mobile and desktop with picture and media queries in Astro, Eleventy and Hugo, without hurting LCP or causing layout shift.
  • Blur-Up Placeholders with LQIPHow-toGenerate tiny blurred placeholders for images at build time in Astro or Eleventy, inline them without slowing LCP, and decide when a solid colour is better.
  • Caching Processed Images Between BuildsHow-toPersist Astro and Eleventy image caches between CI builds so AVIF and WebP variants are generated once, with correct cache keys, pruning and measured build times.
  • Generating Open Graph Images at Build TimeHow-toRender a unique social preview image for every page at build time with Satori and resvg, cache the output, and wire og:image tags into Astro, Hugo or Eleventy.
  • How to Reduce Bundle Size in Eleventy BuildsHow-toCut JavaScript in Eleventy builds — scope scripts per route, tree-shake and bundle with esbuild, and defer third-party code. Concrete before/after KB numbers.
  • Lazy-Loading Images Without Hurting LCPHow-toloading="lazy" saves bytes below the fold but delays the LCP image when applied to it. How to decide per image, per template, in Astro, Hugo and Eleventy.
  • Minifying HTML, CSS and JS in EleventyHow-toMinify Eleventy output safely with html-minifier-terser, Lightning CSS and esbuild, keep code blocks intact, and measure what minification saves after brotli.
  • Precompressing Assets with Brotli and ZstdHow-toPrecompress static site output at build time with brotli 11 and zstd 19, serve the variants from Caddy, nginx or Cloudflare, and measure the transfer saving.
  • Responsive Images with srcset in EleventyHow-toGenerate AVIF, WebP and JPEG widths with @11ty/eleventy-img, emit srcset and sizes that match your layout, and cache the output so builds stay fast.

Production-Ready Deployment & CI/CD for SSGs

Topics with the most Eleventy guides Horizontal bars, largest first: Astro vs Eleventy for Documentation Sites 11, Image Optimization Pipelines in Astro 6, SSG Framework Selection Matrix 3, Technical SEO for Static Sites 3, Incremental Builds and Build Caching for SSGs 3 and Internationalization for Static Sites 2. Where Eleventy comes up Astro vs Eleventy for Documentation… 11 Image Optimization Pipelines in Astro 6 SSG Framework Selection Matrix 3 Technical SEO 3 Incremental Builds and Build Caching 3 Internationalization 2
Topic pages give the wider context for each group; the numbers count only guides that use this tool in depth.

Often used with Eleventy

  • Astro22 shared guidesIslands, content collections, astro:assets and deployment.
  • Hugo15 shared guidesBuild time at scale, image caches, modules and multilingual sites.
  • Jekyll5 shared guidesPlugins, reproducible builds, upgrades and migration away.
  • Vercel3 shared guidesNon-Next.js generators, the Build Output API and caching.
  • Next.js2 shared guidesStatic export for content sites, its limits and alternatives.
  • Cloudflare2 shared guidesPages and Workers hosting, cache rules and edge functions.