基于 Eleventy 静态站点生成器的博客启动模板
eleventy-base-forestry — Eleventy 博客模板
作者 DirtyF
基于 Eleventy 的博客启动器,预配置 Forestry CMS,可通过一键导入在 Forestry 中管理内容。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
预配置 Forestry CMS,仓库内提供一键导入入口
包含文章、关于页、feed 和可复用文章列表组件
布局分为 base、home、post 三层,便于按需调整
内容支持多种模板格式,可在 .eleventy.js 中配置
采用 MIT 许可,允许免费使用、修改、商用和分发
模板详细介绍
这是一个面向 Eleventy 静态站点生成器的博客启动模板,在官方 eleventy-base-blog 基础上预配置了 Forestry CMS,仓库中提供了 Forestry 一键导入入口,便于将内容管理交给 Forestry。
模板包含博客所需的基本结构:posts 目录存放文章(通过 post 标签归入集合),about/index.md 展示如何添加内容页面,feed/feed.njk 生成博客文章 feed,_data/metadata.json 存放站点元数据。布局分为 base.njk(顶层 HTML 结构)、home.njk(首页)和 post.njk(文章页),_includes/postlist.njk 是可复用的文章列表组件。内容可使用任意模板格式,支持的格式在 .eleventy.js 的 templateFormats 中配置;css 和 png 等非模板文件会被原样复制到输出目录。
使用前需要自行克隆仓库、安装依赖并运行 Eleventy 命令,README 中给出了本地开发、监听和调试的常用命令。该模板采用 MIT 许可,但演示图片、字体、图标等第三方素材需单独核对许可,Forestry 等外部服务也可能涉及额外费用。
适合你的项目吗?
适用场景
- 使用 Eleventy 搭建个人博客并希望用 Forestry 管理内容
- 需要一份包含文章列表、feed 和关于页的博客起步结构
- 想参考 Eleventy 的布局分层与全局数据文件用法
- 通过克隆仓库并安装依赖来本地运行和二次开发
适合人群
- 熟悉或愿意学习 Eleventy 与 Nunjucks 的开发者
- 需要将博客内容接入 Forestry CMS 的团队或个人
- 希望以 MIT 许可代码为基础进行修改和分发的用户
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
克隆仓库后进入目录,运行 npm install 安装依赖
- 2
按需编辑 _data/metadata.json 配置站点元数据
- 3
使用 npx eleventy 构建,或用 --serve、--watch 本地开发
- 4
可在 .eleventy.js 中调整 templateFormats 等 Eleventy 选项
- 5
演示图片、字体、图标等第三方素材需单独核对许可
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
- 该模板预配置为使用 Forestry CMS,内容管理依赖 Forestry 这一外部服务,需通过其导入入口接入,可能涉及外部服务账号与费用。
- 仓库提供 Forestry 一键导入入口,使用该 CMS 需访问 app.forestry.io 并授权仓库,属于外部服务依赖。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
Pre-configured for Forestry CMS, import it in a single click
README 原文
https://github.com/DirtyF/eleventy-base-forestry/blob/forestry/LICENSEhttps://github.com/DirtyF/eleventy-base-forestry/blob/forestry/README.md[](https://app.forestry.io/quick-start?repo=dirtyf/eleventy-base-forestry&engine=other&branch=forestry)
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-12。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 70 / 100
- 技术栈
- Eleventy
- 网站类型
- 博客 · 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2023-01-27
- 截图检查日期
- 2026-10-12
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Eleventy。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-13
查看当时使用的来源资料
SHA-256: 44dfe6137dd808cfdb53279d0e7f53295cc11bff6bc3deae53b9ee675ee180f4
2026-10-12T21:04:57.393Z
来源文件 / 仓库# eleventy-base-blog for Forestry A starter repository showing how to build a blog with the [Eleventy](https://github.com/11ty/eleventy) static site generator. Pre-configured for Forestry CMS, import it in a single click [](https://app.forestry.io/quick-start?repo=dirtyf/eleventy-base-forestry&engine=other&branch=forestry) ## Demos * [Netlify](https://eleventy-base-blog.netlify.com/) * [GitHub Pages](https://11ty.github.io/eleventy-base-blog/) * [Remix on Glitch](https://glitch.com/~11ty-eleventy-base-blog) ## Deploy this to your own site These builders are amazing—try them out to get your own Eleventy site in a few clicks! * [Get your own Eleventy web site on Netlify](https://app.netlify.com/start/deploy?repository=https://github.com/11ty/eleventy-base-blog) * [Get your own Eleventy web site on Vercel](https://vercel.com/import/project?template=11ty%2Feleventy-base-blog) ## Getting Started ### 1. Clone this Repository ``` git clone https://github.com/11ty/eleventy-base-blog.git my-blog-name ``` ### 2. Navigate to the directory ``` cd my-blog-name ``` Specifically have a look at `.eleventy.js` to see if you want to configure any Eleventy options differently. ### 3. Install dependencies ``` npm install ``` ### 4. Edit _data/metadata.json ### 5. Run Eleventy ``` npx eleventy ``` Or build and host locally for local development ``` npx eleventy --serve ``` Or build automatically when a template changes: ``` npx eleventy --watch ``` Or in debug mode: ``` DEBUG=* npx eleventy ``` ### Implementation Notes * `about/index.md` shows how to add a content page. * `posts/` has the blog posts but really they can live in any directory. They need only the `post` tag to be added to this collection. * Add the `nav` tag to add a template to the top level site navigation. For example, this is in use on `index.njk` and `about/index.md`. * Content can be any template format (blog posts needn’t be markdown, for example). Configure your supported templates in `.eleventy.js` -> `templateFormats`. * Because `css` and `png` are listed in `templateFormats` but are not supported template types, any files with these extensions will be copied without modification to the output (while keeping the same directory structure). * The blog post feed template is in `feed/feed.njk`. This is also a good example of using a global data files in that it uses `_data/metadata.json`. * This example uses three layouts: * `_includes/layouts/base.njk`: the top level HTML structure * `_includes/layouts/home.njk`: the home page template (wrapped into `base.njk`) * `_includes/layouts/post.njk`: the blog post template (wrapped into `base.njk`) * `_includes/postlist.njk` is a Nunjucks include and is a reusable component used to display a list of all the posts. `index.njk` has an example of how to use it.
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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