文章与站点代码分离:content/ 放 Markdown 文章,src/ 放 React 页面与模板
gatsby-blog-starter — Gatsby 博客模板
作者 aboglioli
基于 Gatsby 的博客启动器,面向编程与开发主题写作,文章使用 Markdown 存放在 content/ 目录,页面与模板用 React 编写。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
frontmatter 支持 title、date、description、category、tags、collection 字段
根据文章分类和标签自动生成分类页与标签页
支持代码块与代码片段高亮,适合写开发类内容
collection 字段可将同组文章聚合,并生成组内内容目录
本地开发带文件监听,构建产物输出到 public/ 目录
模板详细介绍
gatsby-blog-starter 是一个用 Gatsby 搭建的博客模板,定位是写编程与开发相关内容的博客。仓库把内容与站点代码分开:content/ 目录存放 Markdown 格式的文章,src/ 目录存放 React 页面与模板,样式和视图的调整都在 src/ 内完成。
文章通过 frontmatter 声明元数据,可用的字段包括 title、date、description、category、tags 和 collection。README 中 title 标注为必填,date 与 category 也标注为必填,但随后又说明只有 title 是必需的,两处表述不一致,实际使用时建议以项目运行结果为准。collection 是特殊字段,同一 collection 名称的文章会被归为一组,并生成内容目录用于在组内文章之间跳转。
模板自带分类页与标签页,会依据文章中的 category 和 tags 自动生成;代码块及代码片段支持高亮。内容管理依赖 GraphQL、插件和 transformer。本地开发时提供文件监听,改动会被自动检测。构建产物输出到 public/ 目录,部署脚本需要在 package.json 中自行配置。
适合你的项目吗?
适用场景
- 搭建以编程和开发为主题的 Markdown 博客
- 需要按分类和标签自动归档文章的技术写作站点
- 文章需要代码高亮与代码片段展示的博客
- 用 collection 组织同一主题下多篇连载文章
适合人群
- 熟悉 React 与 Gatsby,希望自行调整页面和样式的开发者
- 以 Markdown 写作、需要内容与代码分离的博客作者
- 需要分类、标签和代码高亮等技术博客常见功能的项目
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
克隆仓库后运行 yarn install 安装依赖
- 2
本地开发使用 yarn develop,构建使用 yarn build,产物在 public/ 目录
- 3
部署命令 yarn deploy 需要在 package.json 中先完成配置
- 4
文章写在 content/ 目录,frontmatter 中 title 为必填字段
- 5
README 对 date、category 是否必填的说明前后不一致,使用前建议实际验证
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
- 部署功能需要先在 package.json 中自行配置部署脚本,模板本身不提供可直接使用的部署配置。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
https://github.com/aboglioli/gatsby-blog-starter/blob/master/LICENSEhttps://github.com/aboglioli/gatsby-blog-starter/blob/master/README.mdDeploy (requires configuration in `package.json`):
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-13。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 70 / 100
- 技术栈
- Gatsby · React
- 网站类型
- 博客 · 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2019-03-01
- 截图检查日期
- 2026-10-13
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Gatsby。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-13
查看当时使用的来源资料
SHA-256: ecc5268a99c07f7ed5c704537ee98be452ab8bee03fd3c7c974c7674294b1db7
2026-10-13T02:14:22.600Z
来源文件 / 仓库# Gatsby Blog Starter A template for building blogs about coding and development with Gatsby. Let's write and share code. ## Features - Built with [Gatsby](https://www.gatsbyjs.org): A lot of features! - Content mangement through GraphQL, plugins and transformers. - Uses React for pages and templates with all the power de components. - Posts have category and tags. - Category and tags pages are generated automatically. - Highlight code and portions of code. - Content (posts in markdown format) and web source are separate. - Local development tool watch for changes. - Easy customization. ## Use Folders: - `src/`: web code using React. Customize views and styles here. - `content/`: blog posts. After cloning this repository, install all dependencies: ``` yarn install ``` Local development: ``` yarn develop ``` Build project. Files are generated in `public/` folder. ``` yarn build ``` Deploy (requires configuration in `package.json`): ``` yarn deploy ``` You can configure that scripts in `package.json`. ## Posts Available *frontmatter* fields: - title: `title: Starting an amazing adventure`. *Required*. - date: `date: 2019-03-01 15:21:00` or `2019-03-01`. *Required*. - description: `description: It will be shown in main page` - category: `category: Backend`. *Required*. - tags: `tags: [GraphQL, NodeJS]`. - collection: `collection: Amazing adventure`. Only `title` is required. `collection` is a special field. All posts with the same collection name (string) are going to be grouped and a content table generated to navigate between those posts.
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

gatsby-starter-gcn
gatsby-starter-gcn 是一个面向静态网站构建的 Gatsby 启动器,将内容管理、部署和前端开发串联起来。
Gatsby · 博客

devblog
A lightweight, customizable personal blog template built with GatsbyJS and React
Gatsby · 博客

gatsby-starter-morning-dew
:rocket: A Gatsby theme/starter to build lightning-fast blog/websites
Gatsby · 博客

starter-gatsby-blog
这是一个由 Contentful 社区维护的 Gatsby 博客启动器,目标是把静态站点的低维护成本与 Contentful 的友好编辑界面结合起来。
Gatsby · 社区

automatic-gatsbyjs-app-landing-page
Automatic GatsbyJS App Landing Page - Automatically generate iOS app landing page using GatsbyJS
Gatsby · 工具站

gatsby-starter-cv
A simple starter to get up and developing your digital curriculum with GatsbyJS
Gatsby · 启动器
