Eleventy 官方维护的极简 WebC 启动项目
eleventy-base-webc — Eleventy 启动器模板
作者 11ty
Eleventy 官方维护的极简启动项目,预配置 WebC 插件与布局,用于演示和试验 WebC 与 Eleventy 的配合方式。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
预配置 Eleventy WebC 插件,可直接使用 `<is-land>` 组件做局部水合
自定义 `*.webc` 组件放入 `_components` 文件夹
使用 `js` front matter 类型编写任意 JavaScript front matter
提供含 critical CSS 与 JS 打包的 WebC 布局文件 `_includes/layouts/base.webc`
模板详细介绍
这是 Eleventy 官方仓库中的一个极简启动项目,定位为“bare-bones”,即只保留最基本的结构,供演示和试验使用。它把 Eleventy 与 WebC 语言放在一起:项目预配置了 Eleventy WebC 插件,并包含可直接使用的 `<is-land>` WebC 组件,用于局部水合(partial hydration)。自定义的 `*.webc` 文件放在 `_components` 文件夹中。
项目使用 Eleventy 的 `js` front matter 类型,允许在 front matter 中写任意 JavaScript。布局方面提供了一个简单的 WebC Eleventy Layout 文件(`_includes/layouts/base.webc`),其中包含精简的 critical CSS 与 JS 打包。首页内容位于 `content/index.webc`。
由于是官方基础模板,它不包含完整的站点结构、内容体系或设计系统,样式与页面组织需要使用者自行搭建。仓库采用 MIT 许可,可免费使用、修改、商用和分发,但演示图片、字体、图标等第三方素材需单独核对许可。
适合你的项目吗?
适用场景
- 试验 WebC 组件写法与 `<is-land>` 局部水合
- 为 Eleventy 项目搭建 WebC 组件目录与布局基础
- 在本地快速启动一个最小 Eleventy 站点做演示
适合人群
- 想了解 Eleventy 与 WebC 如何配合的开发者
- 需要官方最小起点而非完整主题的 Eleventy 用户
- 准备自行搭建样式与页面结构的项目
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
用 `git clone`、`npx degit 11ty/eleventy-base-webc` 或 GitHub 的 Use this template 复制代码到当前文件夹
- 2
运行 `npm install` 安装依赖
- 3
运行 `npm start` 启动,默认访问 `http://localhost:8080`
- 4
首页内容在 `content/index.webc` 中修改
- 5
演示图片、字体、图标等第三方素材需按各自许可单独核对
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
https://github.com/11ty/eleventy-base-webc/blob/main/LICENSEhttps://github.com/11ty/eleventy-base-webc/blob/main/README.mdPermission is hereby granted, free of charge
许可证原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-01。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 81 / 100
- 技术栈
- Eleventy
- 网站类型
- 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2024-10-16
- 截图检查日期
- 2026-10-01
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Eleventy。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: 9948f5e9fc87b9096331e1ff79f9e0ad2db2d1d8c595eb2b716e27542878f20c
2026-10-01T14:45:03.495Z
来源文件 / 仓库# eleventy-base-webc A minimalist bare-bones Eleventy-official starter project useful for demos/experiments with [WebC](https://www.11ty.dev/docs/languages/webc/) and the [Eleventy](https://www.11ty.dev/) site generator (using the [v3.0 release](https://www.11ty.dev/blog/canary-eleventy-v3/)). ## Features * [Eleventy WebC plugin](https://www.11ty.dev/docs/languages/webc/) preconfigured: * Includes the [`<is-land>` WebC component](https://www.11ty.dev/docs/plugins/partial-hydration/) ready for use. * Add your own `*.webc` files to the `_components` folder. * Using the new [`js` front matter type for arbitrary JavaScript front matter](https://www.11ty.dev/docs/data-frontmatter/#javascript-front-matter) * Simple WebC Eleventy Layout file with streamlined critical CSS and JS bundles (see `_includes/layouts/base.webc`) ## Get Started 1. Make a copy of this code with **one** of these on the command line (both install into the current folder): * `git clone https://github.com/11ty/eleventy-base-webc.git .` * `npx degit 11ty/eleventy-base-webc` * …or you can use the [_"Use this template"_ button on GitHub](https://github.com/11ty/eleventy-base-webc). 2. Install the dependencies by running `npm install` 3. Run it with `npm start` (see the other commands in `package.json` or on the [CLI docs](https://www.11ty.dev/docs/usage/)) 4. Navigate to `http://localhost:8080` in your web browser. 5. Edit `content/index.webc` to change content on the home page. ## Demo - [Cloudflare Pages](https://eleventy-base-webc.pages.dev/) - [Netlify](https://eleventy-base-webc.netlify.app/) - Learn more about [deploying an Eleventy project to the web](https://www.11ty.dev/docs/deployment/).
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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 · 启动器
