网页 综合 更新时间 2026-11-13 20:00:54

Eleventy is a simpler static site generator

自动蜘蛛 www.11ty.dev 正文约 3075 字
Eleventy is a simpler static site generator
Eleventy takes a directory of content (Markdown, HTML, or any custom file type) and quickly builds it into a fast website. Eleventy is stable, secure, and privacy-focused: giving you full control of the output.
Eleventy requires a way to run 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 running node --version in a Terminal. (Well, wait—what is a Terminal?) If node is not found or it reports a version number below 18, you will need to install Node.js before moving on.
Now we’ll create an index.md Markdown file. You can do this in the text editor of your choice or by running one of these commands in your terminal:
If the out-file command is not available in your Windows Terminal window (it’s PowerShell specific), use the Cross Platform method.
Learn more about @11ty/create (requires Node.js 18 or newer).
Run Eleventy using npx, an npm-provided command that is bundled with Node.js.
pnpm is an optional alternative to npm that needs to be installed separately.
Yarn is an optional alternative to npm that needs to be installed separately.
Eleventy compiles any files in the current directory matching valid file extensions (md is one of many) to the _site output folder. It might look like this:
The --serve option also starts a local development server. Open up http://localhost:8080/ in your favorite web browser to view your web site.
If you’d like to experiment further with different template syntax, edit the following sample index.md file in your browser. Front Matter, Liquid and Markdown are in use.
Todd and Bruce said this button should be bigger and as you can see they were right.
A random sample taken from 900 authors. Check out the fastest of their 1302 web sites.
Listen to what these happy developers are saying about Eleventy:
“Jekyll is dead to me” —Andy Bell
“Eleventy is absolutely wonderful. It’s by far the nicest static site generator I’ve used in what feels like forever.” —Addy Osmani
“Eleventy is a killer static site generator. That’s all.” —Sara Soueidan
“I use Eleventy on almost every project at this point and I love it.” —Lea Verou
“2022 winner of the Google Open Source Peer Bonus Award” —Google
“Eleventy + Netlify have become my new workflow for static sites. I think I'm in love.” —Mina Markham
“Don’t tell Zach I said it but Eleventy is seeming fresh as hell so far” —Mat Marquis
“Eleventy is almost fascinatingly simple.” —Chris Coyier
“I heard Eleventy was good” —Lach Zeatherman
“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.” —Mathias Bynens
“#1 Product of the Day (May 2022)” —Product Hunt
This project aims to directly compete with all other static site generators. We encourage you to try out a few others:
20k Star Eleventy on GitHub! This is an easy way to support our underrated project and help boost our rank on both GitHub and jamstack.org’s list of site generators.
访问原文 返回搜索 https://www.11ty.dev/
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。