编译网站速度快,生成的网站速度更快
Name | Building ×4000 Markdown Files | |
---|---|---|
Eleventy | 1.93s | |
Astro | 22.90s | |
Gatsby | 29.05s | |
Next.js | 70.65s |
以 编译 ×4000 个 markdown 文件进行的基准测试。了解有关 Eleventy 网站和编译性能方面的更多信息。
快速入门,只需两步
首先创建一个 Markdown 文件。
echo '# Page header' > index.md
然后运行 Eleventy。
npx @11ty/eleventy
Eleventy 将当前目录下所有以有效 文件扩展名 (例如 .md
等)结尾的文件编译并输出到指定目录下 (默认为 _site
目录)。如下所示:
Writing _site/index.html from ./index.md (liquid)
Wrote 1 file in 0.03 seconds (v2.0.1)
执行 npx @11ty/eleventy --serve
命令来启动 本地开发服务器,然后在浏览器中打开 http://localhost:8080/
链接就能看到你的网站了。
- 阅读完整的 入门指南。
- 观看视频教程(需翻墙):6 分钟从零创建一个博客。
- 查看 Eleventy v2.0.1 的中文文档。
- Trusted by
- NASA
- Cern
- TC39
- W3C
- Netlify
- web.dev
- MIT
- Stanford
- V8
- GSAP
- Chrome Developers
- Foursquare
- CSS Tricks
- WebPageTest
- A11Y Project
- NOAA
- United Kingdom (gov)
- France (gov)
- Stack Overflow
- Lit
- Glitch
- Stackblitz
- Open Web Docs
- jamstack.org
- Greenpeace
- CSIS
- ESLint
- Mocha
- reveal.js
- Panic
- Filament Group
- Set Studio
- Ookla
- Khan Academy
- Basecamp
- Snowpack
- ffconf
- UX London
- Nordhealth
- Orange
- Univ. of Wisconsin-Madison
- California (gov)
- Red Hat
- Just Eat Takeaway
- …and more
Todd and Bruce said this button should be bigger and as you can see they were right.
Official CMS Partner
Gold Sponsors
Supporters
使用 Eleventy 创建的网站
Sample of 110 authors shown. View all 1039 sites.
Don’t take my word for it
Rainbow
Listen to what these happy developers are saying about Eleventy:
“2022 winner of the Google Open Source Peer Bonus Award” —Google
“Eleventy and web components go really, really well together.” —Justin Fagnani
“Just the kind of simple / common sense tool I love. The data/folder hierarchy mechanism is super obvious and elegant.” —Heydon Pickering
“I actually used Eleventy for the first time this week. Loved it.” —Paul Lewis
“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
“Eleventy is almost fascinatingly simple.” —Chris Coyier
“I heard Eleventy was good” —Lach Zeatherman
“Eleventy + Netlify have become my new workflow for static sites. I think I'm in love.” —Mina Markham
Read the replies to: “Fans of Eleventy.... why do you like it better than other static site generators?”
“Jekyll is dead to me” —Andy Bell
“I use Eleventy on almost every project at this point and I love it.” —Lea Verou
“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
“Eleventy is a killer static site generator. That’s all.” —Sara Soueidan
“Eleventy is my fave.” —Tatiana Mac
“Don’t tell Zach I said it but Eleventy is seeming fresh as hell so far” —Mat Marquis
“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
“#1 Product of the Day (May 2022)” —Product Hunt
“Eleventy is absolutely wonderful. It’s by far the nicest static site generator I’ve used in what feels like forever.” —Addy Osmani
“The Eleventy + Netlify combo continues to be 🤌” —Dan Mall