Eleventy(11ty) logo Eleventy
The possum is Eleventy’s mascot

Eleventy 是一个比竞品更简洁的静态网站生成器。

推荐博文Represent Eleventy in the State of JavaScript Survey 2022

快速入门 Jump to heading

要运行 Eleventy v1.0.2,首先需要安装 Node 12 或更高版本。 你可以在命令行(或终端)窗口中执行 node --version 命令来查看你本地所安装的 Node 版本号。

echo '# Page header' > README.md
npx @11ty/eleventy

上述命令将会把所有以 受支持的扩展名.md 扩展名便是其中之一)结尾的文件编译并输出到特定目录下(默认是 _site 目录)。

Writing _site/README/index.html from ./README.md (liquid)
Wrote 1 file in 0.03 seconds (v1.0.2)

执行 npx @11ty/eleventy --serve 命令来启动一个 web 服务。然后在浏览器中打开 http://localhost:8080/README/ 网址,你就可以看到 Eleventy 输出的成果了。

➡ 继续探索吧!你可以阅读这篇更长的 入门指南 或查看完整的 Eleventy v1.0.2 中文文档

Eleventy v1.0.2 中文文档Todd and Bruce said this button should be bigger and as you can see they were right

以下这些都是基于 Eleventy 构建的网站 Jump to heading

总共收录了 805 个网站

别看广告,看疗效 Jump to heading

听听这些 快乐的开发者 是怎么评价 Eleventy 的:

“Eleventy is a killer static site generator. That’s all.” Sara Soueidan’s Twitter PhotoSara Soueidan

“Eleventy + Netlify have become my new workflow for static sites. I think I'm in love.” Mina Markham’s Twitter PhotoMina Markham

“Eleventy is absolutely wonderful. It’s by far the nicest static site generator I’ve used in what feels like forever.” Addy Osmani’s Twitter PhotoAddy Osmani

“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’s Twitter PhotoMathias Bynens

“I heard Eleventy was good” Lach Zeatherman’s Twitter PhotoLach Zeatherman

“Seriously can't remember enjoying using a Static Site Generator this much. Yes Hugo is rapid, but this is all so logical. It feels like it was designed by someone who has been through lots of pain and success using other SSGs.” Phil Hawksworth’s Twitter PhotoPhil Hawksworth

“Eleventy is my fave.” Tatiana Mac’s Twitter PhotoTatiana Mac

“Just the kind of simple / common sense tool I love. The data/folder hierarchy mechanism is super obvious and elegant.” Heydon Pickering’s Twitter PhotoHeydon Pickering

“Eleventy and web components go really, really well together.” Justin Fagnani’s Twitter PhotoJustin Fagnani

“Jekyll is dead to me” Default AvatarAndy Bell

“Think the reason everyone is loving [Eleventy] so much (myself included) is that it doesn't come with a prescription about data sources or template rendering.” Brian Leroux’s Twitter PhotoBrian Leroux

“Don’t tell Zach I said it but Eleventy is seeming fresh as hell so far” Mat Marquis’s Twitter PhotoMat Marquis

“I actually used Eleventy for the first time this week. Loved it.” Paul Lewis’s Twitter PhotoPaul Lewis

“Eleventy is almost fascinatingly simple.” Chris Coyier’s Twitter PhotoChris Coyier

…and many more!