DEV Community

Arhan Khan
Arhan Khan

Posted on

Eleventy (11ty) for Beginners: Build Blazing-Fast Static Sites With Plain JavaScript

Eleventy, usually written 11ty, is a static site generator that does one thing extremely well: it turns templates and Markdown into plain HTML files. No client-side framework, no hydration step, no JavaScript shipped to the browser unless you add it yourself. If you want a blog, a docs site, or a portfolio that loads instantly, Eleventy is one of the simplest tools that gets you there.

What makes Eleventy different is how little it assumes. It does not force a template language — you can write Markdown, Nunjucks, Liquid, Handlebars, or plain HTML, and mix them in one project. There is no required folder structure and no client-side runtime to learn. You point it at your content, and it outputs a folder of HTML.

npm install @11ty/eleventy
npx @11ty/eleventy --serve
Enter fullscreen mode Exit fullscreen mode

A Markdown post with front matter is all it takes to get a page:

---
title: "Hello, Eleventy"
layout: base.njk
---

This is my first post. Eleventy turns it into HTML.
Enter fullscreen mode Exit fullscreen mode
<!-- _includes/base.njk -->
<!doctype html>
<html>
  <body>
    <h1>{{ title }}</h1>
    {{ content | safe }}
  </body>
</html>
Enter fullscreen mode Exit fullscreen mode

Eleventy is a great fit for blogs, documentation, marketing pages, and personal sites — anywhere the content matters more than interactivity. It pairs well with a CDN, costs almost nothing to host, and your pages score well on performance by default because there is simply less to load.

The limits are honest ones. Eleventy has no built-in client-side framework, so a highly interactive app needs you to add one yourself. Its plugin ecosystem is smaller than Next.js or Astro, and very large sites can see slower build times. But for content sites, that trade is usually worth it.

If you are starting a blog this week, try Eleventy for one page first: write a Markdown file, add a layout, and run the dev server. You will know within an hour whether its simplicity fits the way you build.

Top comments (0)