Build your website in 5 minutes
This Eleventy starter ships pre-built sections, a Decap CMS-powered blog, LESS styling, and automatic image optimization via the Sharp plugin, all organized inside src/ using the includes-and-sections pattern.
What We'll Build
Install the Template
Scaffold your Eleventy project from the starter template in one command
Customize Your Site Info
Update your business name, colors, and navigation data
Edit the Landing and Interior Pages
Modify the sections in the includes folder
Preview & Deploy
Run the dev server, verify your page, and ship it
Install the Template
1 minutePull the project straight from the GitHub template using degit.
Scaffold the project
This copies the starter template into a new folder with a clean git history, no extra setup needed.
npx degit websitero-org/Eleventy-Starter my-eleventy-siteEnter the project and start the dev server
cd my-eleventy-site npm install npm start
Your site is live locally
Open http://localhost:8080, you should see the full demo landing page from the template.
Customize Your Site Info
2 minutesTwo files control all global site data, your business info and your navigation links.
Edit src/_data/client.js
This is the single source of truth for your brand, name, address, SEO metadata, and social links. Replace the placeholder values:
// src/_data/client.js
module.exports = {
name: "Your Business Name",
email: "hello@yourdomain.com",
phoneForTel: "555-555-5555",
phoneFormatted: "(555) 555-5555",
address: {
lineOne: "123 Main Street",
lineTwo: "",
city: "New York",
state: "NY",
zip: "10001",
country: "US",
mapLink: "https://maps.google.com/?q=...",
},
socials: {
facebook: "https://facebook.com/yourhandle",
instagram: "https://instagram.com/yourhandle",
},
// Used for SEO canonical tags and the sitemap
domain: "https://yourdomain.com",
isProduction: process.env.ELEVENTY_ENV === "PROD",
};Also update your navigation in src/_includes/sections/header.html
Edit the anchor links to match your pages. The active link is highlighted automatically by comparing each href against page.url.
<li class="cs-li"><a href="/about/" class="cs-li-link">About</a></li>Edit the Landing Page and Interior Pages
1 minuteThe landing page lives at src/index.html and the interior pages live in src/content/pages/. It's composed of pre-built sections you can swap or edit.
Editing a page
Each page is its own .html file inside src/content/pages/. Open any section and edit the text and image paths directly in the markup, no config files needed:
<!-- src/_includes/sections/hero.html -->
<section id="hero">
<div class="cs-container">
<div class="cs-content">
<h1 class="cs-title">Your Headline Here</h1>
<p class="cs-text">
A short description of what you do and who you help.
</p>
<a href="/contact/" class="cs-button-solid">Get Started</a>
</div>
<picture class="cs-picture">
<img src="/assets/images/hero.jpg" alt="Hero image"
loading="lazy" decoding="async" width="600" height="400" />
</picture>
</div>
</section>Replace placeholder images
Drop your own images into src/assets/images/ and update the paths in the section files. Eleventy automatically optimizes them with the Sharp image plugin.
Want to see all components in action?
Check out the components showcase page to see live examples of every component with interactive demos.
View Component LibraryBuild & Deploy
1 minuteRun a production build and deploy to any static host in seconds. See Deployment Guide
Build for production
npm run buildOutput goes to public/. Preview it locally with npm start.
