使用 Eleventy 生成静态博客页面,文章目录与布局分离,结构清晰
Eleventy-Starter-Boilerplate — Eleventy 启动器模板
作者 tvingmark
基于 Eleventy 的静态博客启动模板,内置 Tailwind CSS、Webpack、SEO 元数据与可选 Netlify CMS,MIT 许可。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
集成 Tailwind CSS 与 PostCSS,构建时清除未使用样式并压缩 HTML、CSS
内置 SEO 元数据、Open Graph 标签、JSON-LD、Sitemap.xml 与 404 页面
包含分页、Prism.js 代码高亮、lazysizes 图片懒加载与 Imagemin 图片压缩
提供 ESLint、Prettier 与 Webpack 构建流程,附带免费极简博客主题
Netlify CMS 为可选组件,可整体移除后部署到其他静态托管服务
模板详细介绍
Eleventy-Starter-Boilerplate 是一个面向博客场景的 Eleventy 静态站点启动模板。它把静态站点生成、样式处理与前端构建串成一条可运行的开发流程:Eleventy 负责生成页面,Tailwind CSS 配合 PostCSS 编写样式,Webpack 打包资源,ESLint 与 Prettier 约束代码风格。模板自带一套极简博客主题,包含分页、404 页面、Sitemap.xml、SEO 元数据与 Open Graph 标签、JSON-LD 结构化数据,以及基于 Prism.js 的代码高亮。构建阶段会压缩 HTML 与 CSS、清除未使用的 Tailwind 样式,并对文章图片做压缩处理。内容结构清晰:文章放在 src/posts,布局在 src/_includes/layouts,站点配置集中在 src/_data/site.json,静态资源分置于 public 与 src/assets。Netlify CMS 为可选项,不使用 Netlify 时可删除 public/admin、netlify.toml 及相关脚本。本地开发依赖 Node.js 与 npm,npm run dev 启动带热重载的服务,npm run build 输出到 _site 目录,可部署到任意静态托管服务。
适合你的项目吗?
适用场景
- 快速搭建一个结构完整、带 SEO 基础配置的个人或团队博客
- 作为 Eleventy 学习项目,了解静态站点生成器与前端构建工具的配合方式
- 需要 Tailwind CSS 与 Webpack 构建链的静态内容站点起步
- 希望通过 Netlify CMS 让非技术成员编辑 Markdown 文章的博客
适合人群
- 熟悉 Node.js 与 npm,能运行命令行构建的开发者
- 计划使用 Eleventy 并以 Markdown 撰写内容的博客作者
- 需要可自行修改布局与样式的静态站点项目
- 愿意按 MIT 许可保留版权声明并自行核对第三方素材许可的使用者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
本地需安装 Node.js 与 npm,克隆仓库后执行 npm install 安装依赖
- 2
npm run dev 启动开发服务并支持热重载,默认访问 http://localhost:8080
- 3
npm run build 生成生产文件到 _site 目录,可部署到任意静态托管服务
- 4
站点信息在 src/_data/site.json 配置,Logo、favicon 与样式文件需按 README 指定路径替换
- 5
不使用 Netlify 时需删除 public/admin、netlify.toml 及 base.ejs 中的 Netlify Identity 脚本
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- Netlify CMS 为可选组件,仅在需要该 CMS 时使用;不使用 Netlify 时可删除 public/admin、netlify.toml 及相关脚本,改用其他静态托管服务。
- README 中列出的 Blue Dark、Blue Eclatant、Blue Modern、Blue Minimalist 等主题为付费 Premium 主题,不属于本 MIT 免费模板的提供范围。
- 本地开发与构建需自行安装 Node.js 与 npm 环境。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
Netlify CMS (optional)
README 原文
Premium Themes ([Eleventy Themes](https://creativedesignsguru.com/category/eleventy/))
README 原文
https://github.com/tvingmark/Eleventy-Starter-Boilerplate/blob/master/LICENSEhttps://github.com/tvingmark/Eleventy-Starter-Boilerplate/blob/master/README.mdNode.js and npm
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 68 / 100
- 技术栈
- Eleventy
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2021-01-22
- 截图检查日期
- 2026-10-02
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Eleventy。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: dc67176b67d32bdd88ed287555072603e1291da83f939225a039dfe50e2da757
2026-10-02T11:14:49.565Z
来源文件 / 仓库# Eleventy Starter Boilerplate
<p align="center">
<a href="https://creativedesignsguru.com/demo/Eleventy-Starter-Boilerplate/eleventy-starter-boilerplate-presentation/"><img src="public/assets/images/eleventy-js-starter-boilerplate.png?raw=true" alt="Eleventy starter banner"></a>
</p>
🚀 Eleventy Starter Boilerplate is production-ready with SEO-friendly for quickly starting a blog. ⚡️ Built with [Eleventy](https://www.11ty.dev), [ESLint](https://eslint.org), [Prettier](https://prettier.io), [Webpack](https://webpack.js.org), [PostCSS](https://postcss.org), [Tailwind CSS](https://tailwindcss.com) and [Netlify CMS](https://www.netlifycms.org) (optional).
Clone this project and use it to create your own [Eleventy](https://www.11ty.dev) blog. You can check a [Eleventy templates demo](https://creativedesignsguru.com/demo/Eleventy-Starter-Boilerplate/eleventy-starter-boilerplate-presentation/).
### Features
Production-ready in mind:
- 🔥 [11ty](https://www.11ty.dev) for Static Site Generator
- 🎨 Integrate with [Tailwind CSS](https://tailwindcss.com) (with [PurgeCSS](https://purgecss.com), remove unused CSS)
- 💅 [PostCSS](https://postcss.org) for processing [Tailwind CSS](https://tailwindcss.com)
- ⚡️ Lazy load images with [lazysizes](https://github.com/aFarkas/lazysizes)
- ✨ Compress image with [Imagemin](https://github.com/imagemin/imagemin)
- 🎈 Syntax Highlighting with [Prism.js](https://prismjs.com)
- ☕ Minify HTML & CSS with [HTMLMinifier](https://www.npmjs.com/package/html-minifier) and [cssnano](https://cssnano.co)
- ✏️ Linter with [ESLint](https://eslint.org)
- 🛠 Code Formatter with [Prettier](https://prettier.io)
- 💨 Live reload
- 📦 Module Bundler with [Webpack](https://webpack.js.org)
- 🦊 Templating with [EJS](https://ejs.co)
- 🤖 SEO metadata and [Open Graph](https://ogp.me/) tags
- ⚙️ [JSON-LD](https://developers.google.com/search/docs/guides/intro-structured-data) for richer indexing
- 🗺 Sitemap.xml
- ⚠️ 404 page
- 📖 Pagination
- ✅ Cache busting
- 💯 Maximize lighthouse score
- 🌈 Include a FREE minimalist blog theme
- 🗒 Netlify CMS (optional)
### Philosophy
- Minimal code (HTML, CSS & JS). Add what you need
- SEO-friendly
- 🚀 Production-ready
### Requirements
- Node.js and npm
### Premium Themes ([Eleventy Themes](https://creativedesignsguru.com/category/eleventy/))
| [Blue Dark Eleventy Theme](https://creativedesignsguru.com/blue-dark-eleventy-theme/) | [Blue Eclatant Eleventy Theme](https://creativedesignsguru.com/blue-eclatant-eleventy-theme/) |
| --- | --- |
| [](https://creativedesignsguru.com/blue-dark-eleventy-theme/) | [](https://creativedesignsguru.com/blue-eclatant-eleventy-theme/) |
| [Blue Modern Eleventy Theme](https://creativedesignsguru.com/blue-modern-eleventy-theme/) | [Blue Minimalist Eleventy Theme](https://creativedesignsguru.com/blue-minimalist-eleventy-theme/) |
| --- | --- |
| [](https://creativedesignsguru.com/blue-modern-eleventy-theme/) | [](https://creativedesignsguru.com/blue-minimalist-eleventy-theme/) |
### Getting started
Run the following command on your local environment:
```
git clone --depth=1 https://github.com/ixartz/Eleventy-Starter-Boilerplate.git my-project-name
cd my-project-name
npm install
```
Then, you can run locally in development mode with live reload:
```
npm run dev
```
Open http://localhost:8080 with your favorite browser to see your blog.
### Project structure
```
.
├── public # Static files
│ └── assets
│ └── images # Images not needed by Webpack
└── src
├── _data # Eleventy data folder
├── _includes
│ └── layouts # HTML layout files
├── assets # Assets folder that needs to be processed by Webpack
│ ├── images
│ │ └── posts # Images used in your blog posts (will be compressed by Webpack)
│ └── styles # Your blog CSS files
└── posts # Your blog posts
```
### Customization
You can easily configure Eleventy Starter Boilerplate. Please change the following file:
- `public/assets/images/logo.png`: your blog logo
- `public/apple-touch-icon.png`, `public/favicon.ico`, `public/favicon-16x16.png` and `public/favicon-32x32.png`: your blog favicon, you can generate from https://favicon.io/favicon-converter/
- `src/_data/site.json`: your blog configuration
- `src/_includes/layouts`: your blog HTML layout
- `src/assets/styles/main.css`: your blog CSS file using Tailwind CSS
### Deploy to production
You can see the results locally in production mode with:
```
npm run serve
```
The generated HTML and CSS files are minified. It will also removed unused CSS from [Tailwind CSS](https://tailwindcss.com).
You can create an optimized production build with:
```
npm run build
```
Now, your blog is ready to be deployed. All generated files are located at `_site` folder, which you can deploy with any hosting service.
### Deploy to Netlify
Clone this repository on own GitHub account and deploy to Netlify:
[](https://app.netlify.com/start/deploy?repository=https://github.com/ixartz/Eleventy-Starter-Boilerplate&stack=cms)
### Remove Netlify files and Netlify CMS
If you don't use Netlify, you can easily remove all Netlify related files:
- `public/admin`, the entier folder
- `src/_includes/layouts/base.ejs`, the loaded script `netlify-identity-widget.js` and the inline script `if (window.netlifyIdentity) { ...`
- `netlify.toml`, the entire file
### Contributions
Everyone is welcome to contribute to this project. Feel free to open an issue if you have question or found a bug.
### License
Licensed under the MIT License, Copyright © 2020
See [LICENSE](LICENSE) for more information.
---
Made with ♥ by [CreativeDesignsGuru](https://creativedesignsguru.com)
[](https://www.buymeacoffee.com/ixartz)
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

eleventy-base-blog
A starter repository for a blog web site using the Eleventy static site generator.
Eleventy · 博客

eleventy-garden
:seedling: A starter site for building a mind garden with eleventy
Eleventy · 启动器

eleventastic
An Eleventy Starter Kit
Eleventy · 启动器

neat-starter
Starter Template for Netlify CMS, Eleventy, Alpine JS & Tailwind CSS
Eleventy · 启动器

Eleventy-Starter-Boilerplate
🚀 Eleventy Starter is production-ready with SEO-friendly for quickly starting a blog. ⚡ Built with Eleventy, …
Eleventy · 博客

eleventy-plus-vite
A clean and fast Eleventy Starter Project with Vite
Eleventy · 启动器
