Movatterモバイル変換


[0]ホーム

URL:


Skip to navigationSkip to main content
Eleventy
Blog
Eleventy, 2024 in Review
Versions
Stable
3.0.0
Canary
3.0.1-alpha.5
Toggle Menu

Eleventy is a simpler static site generator

Quick Start

Eleventy requires a way torun JavaScript on your computer and we recommend Node.js (version 18 or newer). You can check whether or not you have Node.js installed by runningnode --version in a Terminal. (Well, wait—what is a Terminal?) Ifnode is not found or it reports a version number below 18, you will need toinstall Node.js before moving on.

Now we’ll create anindex.mdMarkdown file. You can do this in the text editor of your choice or by running one of these commands in your terminal:

echo'# Heading'> index.md
echo'# Heading'| out-file-encoding utf8'index.md'

If theout-file command is not available in your Windows Terminal window (it’s PowerShell specific), use the Cross Platform method.

npx @11ty/create index.md"# Heading"

Learn more about@11ty/create(requires Node.js 18 or newer).

Run Eleventy usingnpx, annpm-provided command that is bundled with Node.js.

npx @11ty/eleventy--serve
pnpm dlx @11ty/eleventy--serve

pnpm is anoptional alternative to npm that needs to be installed separately.

yarn dlx @11ty/eleventy--serve

Yarn is anoptional alternative to npm that needs to be installed separately.

Eleventy compiles any files in the current directory matching validfile extensions (md is one of many) to the_site output folder. It might look like this:

[11ty] Writing _site/index.html from ./index.md (liquid)
[11ty] Wrote 1 file in 0.03 seconds (v3.0.0)
[11ty] Watching…
[11ty] Server at http://localhost:8080/

The--serve option also starts alocal development server. Open uphttp://localhost:8080/ in your favorite web browser to view your web site.

News from the Blog

Silver Sponsors
Open Collective Avatar for Monarch Air GroupOpen Collective Avatar for SteadyOpen Collective Avatar for Fast Payout CasinosOpen Collective Avatar for PinturaOpen Collective Avatar for ScireOpen Collective Avatar for AntithesisOpen Collective Avatar for Unabridged SoftwareIndieWeb Avatar for https://v1.indieweb-avatar.11ty.dev/https%3A%2F%2Fnejlepsiceskacasina.com%2F/Open Collective Avatar for Playfortuneforfun.comOpen Collective Avatar for Route4Me Route PlannerOpen Collective Avatar for SERP TriumphOpen Collective Avatar for ESLintOpen Collective Avatar for casinochileonline.netOpen Collective Avatar for PayIDGamblerIndieWeb Avatar for https://v1.indieweb-avatar.11ty.dev/https%3A%2F%2Fslovenskeonlinecasino.com%2F/Open Collective Avatar for Nathan Smith

Why should you use Eleventy?

Get started with Eleventy today! or read more aboutEleventy’s project goals.

Open Collective Supporters

Loading…

Documentation

Todd andBruce said this button should be bigger and as you can see they were right.

Built With Eleventy

Sample of110 authors shown. View thefull list of1175 web sites.

Don’t take my word for itRainbow

Listen to what thesehappy developers are saying about Eleventy:

“Eleventy + Netlify have become my new workflow for static sites. I think I'm in love.”IndieWeb Avatar for https://v1.indieweb-avatar.11ty.dev/https%3A%2F%2Fminamarkh.am%2F/Mina Markham

“I heard Eleventy was good”IndieWeb Avatar for https://www.zachleat.com/img/lachzeat-glasses.pngLach Zeatherman

“Jekyll is dead to me”IndieWeb Avatar for https://v1.indieweb-avatar.11ty.dev/https%3A%2F%2Fandy-bell.co.uk%2F/Andy Bell

“Eleventy is a killer static site generator. That’s all.”IndieWeb Avatar for https://v1.indieweb-avatar.11ty.dev/https%3A%2F%2Fwww.sarasoueidan.com%2F/Sara Soueidan

“Eleventy is absolutely wonderful. It’s by far the nicest static site generator I’ve used in what feels like forever.”IndieWeb Avatar for https://v1.indieweb-avatar.11ty.dev/https%3A%2F%2Faddyosmani.com%2F/Addy Osmani

“Eleventy is almost fascinatingly simple.”IndieWeb Avatar for https://v1.indieweb-avatar.11ty.dev/https%3A%2F%2Fchriscoyier.net%2F/Chris Coyier

“Don’t tell Zach I said it but Eleventy is seeming fresh as hell so far”IndieWeb Avatar for https://v1.indieweb-avatar.11ty.dev/https%3A%2F%2Fwil.to%2F/Mat Marquis

“I looked into and actively tried using various static site generators for this project. Eleventy was the only one I could find that gave me the fine-grained control I needed at blazingly fast build times.”IndieWeb Avatar for https://v1.indieweb-avatar.11ty.dev/https%3A%2F%2Fmathiasbynens.be%2F/Mathias Bynens

“I use Eleventy on almost every project at this point and I love it.”IndieWeb Avatar for https://v1.indieweb-avatar.11ty.dev/https%3A%2F%2Flea.verou.me%2F/Lea Verou

“#1 Product of the Day (May 2022)”IndieWeb Avatar for https://v1.indieweb-avatar.11ty.dev/https%3A%2F%2Fproducthunt.com%2F/Product Hunt

“2022 winner of the Google Open Source Peer Bonus Award”IndieWeb Avatar for https://v1.indieweb-avatar.11ty.dev/https%3A%2F%2Fgoogle.com%2F/Google

…and many more!

Alternatives

This project aims to directly compete with all other static site generators. We encourage you to try out a few others:


[8]ページ先頭

©2009-2025 Movatter.jp