基于 Eleventy 的博客源码,派生自 eleventy-base-blog
nightdogs — Eleventy 博客模板
作者 jane777-pixel
nightdogs 是一个基于 Eleventy 的博客站点源码,从 eleventy-base-blog 派生,按作者与日期组织文章,并包含 Netlify CMS 与 Webmention 配置。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
文章按作者与日期分目录存放,图片与文章同目录
frontmatter 强制要求 title、slug、date、author 与 posts 标签
包含 Netlify CMS 配置,用于约束内容目录与字段结构
提供 Webmention 的数据与模板文件
内置多款字体(Bellefair、EB Garamond、Fira Sans 等)供模板引用
模板详细介绍
nightdogs 是 nightdogs.xyz 博客的源代码,使用 Eleventy 静态站点生成器构建,最初从 eleventy-base-blog 派生。仓库同时被标注为博客、工具站与启动器,适合作为个人或多人博客的起点。
内容组织方式比较明确:所有文章放在 content/blog/ 下,每篇文章一个目录,路径为 content/blog/<author>/<YYYY-MM-DD>/<slug>/index.md,文章图片与 index.md 同目录存放。每篇文章的 frontmatter 需要包含 title、slug、date、author 和 tags,其中 tags 必须包含 posts,author 必须与 _data/authors.json 中的作者 slug 一致。
项目包含 Netlify CMS 配置(public/admin/config.yml),用于约束目录与 frontmatter 结构;同时提供 Webmention 的数据与模板文件(_data/webmentions.js 与 _includes/webmentions.njk)。字体方面,public/css/fonts.css 中列出了 Bellefair、Bitcount Grid Single、Jacquard 12、EB Garamond 和 Fira Sans 可供模板或 CSS 引用。
使用限制:_site/ 目录不应直接编辑,所有改动应落在源文件;新增作者需要更新 _data/authors.json 并按需补充主题 CSS;自定义过滤器需要加到 _config/filters.js 并在 eleventy.config.js 中注册。仓库 README 中仍保留一项未完成的待办:为 Adesse 添加 Dog 页面。
适合你的项目吗?
适用场景
- 搭建以作者为维度的多人博客
- 需要按日期与作者组织 Markdown 文章目录的站点
- 希望通过 Netlify CMS 管理文章与图片的博客
- 在 Eleventy 项目中接入 Webmention 的站点
适合人群
- 熟悉 Eleventy 与 Nunjucks 模板的前端开发者
- 需要从现成博客骨架开始改写的个人或小团队
- 计划使用 Netlify 部署并配合 Netlify CMS 的内容维护者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
构建使用 npm run build 或 npx eleventy,本地服务使用 npm start 或 npx eleventy --serve
- 2
推送 main 分支后由 Netlify 自动部署
- 3
新增文章需放在 content/blog/<author>/<YYYY-MM-DD>/<slug>/index.md,并填写规定的 frontmatter
- 4
新增作者需更新 _data/authors.json,并按需添加主题 CSS
- 5
不要直接编辑 _site/ 目录,应修改源文件
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 部署依赖 Netlify:推送 main 分支后由 Netlify 自动部署,使用该托管服务需自行承担其账号与费用。
- 内容目录与 frontmatter 结构由 Netlify CMS 配置强制约束,使用该 CMS 需配合 Netlify 相关服务。
- 不得直接编辑 _site/ 目录,所有改动必须落在源文件上。
- 作者 slug 必须与 authors.json 及主题选择器一致,否则内容无法正确归类。
- 文章 frontmatter 的 author 必须匹配 _data/authors.json 中的作者条目。
- 每篇文章必须包含 posts 标签,否则可能无法被正确收录。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
**Deploy:** Push to main; Netlify auto-deploy.
README 原文
The folder and frontmatter structure is enforced by Netlify CMS (`public/admin/config.yml`).
README 原文
**No direct edits** in `_site/`—always edit source files.
README 原文
**Author slugs** must match those in `authors.json` and theme selectors.
README 原文
- `author`: Author slug (must match `_data/authors.json`).
README 原文
https://github.com/jane777-pixel/nightdogs/blob/main/LICENSEhttps://github.com/jane777-pixel/nightdogs/blob/main/README.md- Every post must have the `posts` tag.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-01。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 88 / 100
- 技术栈
- Eleventy
- 网站类型
- 博客 · 工具站 · 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-09-21
- 截图检查日期
- 2026-10-01
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Eleventy。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: 2d4bf9a86f029bb265f4db3dcaf8c8f651e081c5de054adc480a2b63a44a4bd1
2026-10-01T14:59:29.832Z
来源文件 / 仓库[](https://app.netlify.com/projects/nightdogs/deploys) a # nightdogs.xyz The source code for the blog at nightdogs.xyz. Built with [Eleventy](https://www.11ty.dev/). This project was originally forked from [eleventy-base-blog](https://github.com/11ty/eleventy-base-blog). ## Developer Workflows - **Build:** `npm run build` (or `npx eleventy`) - **Serve locally:** `npm start` (or `npx eleventy --serve`) - **Deploy:** Push to main; Netlify auto-deploy. - **Add author:** Update `_data/authors.json` and add theme CSS if needed. - **Add post:** Place markdown/Nunjucks file in `content/blog/<author>/<date>/<slug>/`. ## Project-Specific Conventions - **Author slugs** must match those in `authors.json` and theme selectors. - **Custom filters**: Add to `_config/filters.js` and register in `eleventy.config.js`. - **Webmentions:** Data and templates in `_data/webmentions.js` and `_includes/webmentions.njk`. - **No direct edits** in `_site/`—always edit source files. ## Blog Post Folder Structure & Content Guidelines ### Folder Structure - All blog posts are stored in `content/blog/`. - Each post is in its own folder, organized by author and date: - `content/blog/<author>/<YYYY-MM-DD>/<slug>/index.md` - Example: `content/blog/jane/2025-07-22/first-post/index.md` - Images for a post should be placed in the same folder as the post's `index.md`. - Example: `content/blog/jane/2025-07-22/first-post/my-image.jpg` ### Naming Conventions - `<author>`: Must match the author slug in `_data/authors.json` (e.g., `jane`, `orionlw`, `adesse`, etc.). - `<YYYY-MM-DD>`: The publish date of the post (year-month-day). - `<slug>`: A short, URL-friendly name for the post (e.g., `first-post`). - Images: Use descriptive, lowercase filenames. Place them in the same folder as the post. ### Required Frontmatter for Posts Each post must have a YAML frontmatter block at the top of `index.md`: ```yaml --- title: Post Title slug: post-title date: YYYY-MM-DDTHH:MM:SS.000Z # ISO format, matches folder date author: author-slug # Must match an entry in authors.json tags: - posts # Always include 'posts' tag # ...other tags as needed --- ``` - `title`: The title of the post. - `slug`: The URL slug (should match the folder name). - `date`: Publish date/time in ISO format (should match folder date). - `author`: Author slug (must match `_data/authors.json`). - `tags`: List of tags. Must include `posts`. ### Tags - Every post must have the `posts` tag. - Add additional tags as needed (e.g., `knitting`, `music`, `swimming`). - Tags are used for filtering and tag pages. ### Images - Place all images for a post in the same folder as the post's `index.md`. - Reference images in markdown using relative paths: - `` - Images are published to `/img/` via the Netlify CMS media settings. ### Example Post Folder ``` content/blog/jane/2025-07-22/first-post/ ├── index.md ├── my-photo.jpg ├── chart.png ``` ### Additional Notes - The folder and frontmatter structure is enforced by Netlify CMS (`public/admin/config.yml`). - Only use author slugs and tags defined in the config and `_data/authors.json`. - For more, see the [Netlify CMS config](public/admin/config.yml) and [authors.json](_data/authors.json). ## Fonts The following fonts are available for use in this project (see `public/css/fonts.css`): - **Bellefair** - **Bitcount Grid Single** - **Jacquard 12** - **EB Garamond** (weights: 400, 500, 600, 700, 800; styles: normal, italic) - **Fira Sans** (weights: 100, 200, 300, 500; styles: normal, italic) To use a font in your templates or CSS, reference its `font-family` name as listed above. ## TODO - [x] Make Nic an author - [x] Fix CMS authentication - [ ] Add Dog page for Adesse
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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