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

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

推荐博文The very first beta release of Eleventy v2.0

快速入门 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 中文文档

Documentation for EleventyTodd and Bruce said this button should be bigger and as you can see they were right

Eleventy is supported by… #

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

总共收录了 848 个网站

别看广告,看疗效 Jump to heading

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

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

“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

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

“Jekyll is dead to me” Default AvatarAndy Bell

“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

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

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

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

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

“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

“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

“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

“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

…and many more!