Documentation — Table of Contents
Quickstart
Fast path to a single-language Baseline site. For full context, see the Simple Baseline Site tutorial.
Prerequisites
- Node 20.15.0+ and npm.
package.jsonwith"type": "module"and scripts:{ "type": "module", "scripts": { "dev": "npx @11ty/eleventy --serve", "build": "npx @11ty/eleventy" } }
1) Install
mkdir baseline-quickstart
cd baseline-quickstart
npm init -y
npm install @11ty/eleventy @apleasantview/eleventy-plugin-baseline @11ty/eleventy-img
2) Configure
.env:ELEVENTY_ENV="development" URL="http://localhost:8080/"eleventy.config.js: addbaseline({})and exportconfig; if you have other config/plugins, place Baseline last.src/_data/site.js: title/tagline/url/defaultLanguage.src/_data/head.js: CSS/JS links.src/_includes/layouts/base.njk: add<baseline-head>inside<head>.src/content/pages/index.md: front matter + minimal body.- Assets:
src/assets/assets.11tydata.js(exclude from collections),src/assets/css/index.css,src/assets/js/index.js.
3) Run and build
- Dev:
npx rimraf dist/ && npm run dev- Open http://localhost:8080/; check
dist/(includingdist/sitemap.xml).
- Open http://localhost:8080/; check
- Build:
npx rimraf dist/ && npm run build- Inspect
dist/for final output.
- Inspect
Next steps
- Tutorial: Build a Simple Baseline Site
- Assets: Assets Pipeline Quickstart
- Head/SEO: Head & SEO Basics
- Multilingual: Build a Multilingual Baseline Site