Cristian Mayo

@cristianmayo

Getting Started with Eleventy

Getting Started with Eleventy

Eleventy is a simpler static site generator that's flexible and powerful. In this post, we'll explore why Eleventy is a great choice for your next project.

Why Eleventy?

  1. Simple - No complex configuration required
  2. Flexible - Use any template language
  3. Fast - Builds are lightning quick
  4. Zero Config - Works out of the box

Installation

Getting started is easy:

npm install @11ty/eleventy

Your First Template

Create an index.njk file:

---
title: Home Page
---

Getting Started with Eleventy

Welcome to my site!

Running Eleventy

Start the development server:

npx eleventy --serve

That's it! Your site is now running at localhost:8080.