以 Markdown 或 MDX 撰写文章与页面,支持代码语法高亮
gatsby-starter-morning-dew — Gatsby 博客模板
作者 maxpou
gatsby-starter-morning-dew 是一个基于 Gatsby 与 React 的博客启动器/主题,用 Markdown 或 MDX 写文章,支持多语言、暗色模式、标签分组与 Disqus 评论,采用 MIT 许可。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
博客文章支持多语言(i18n),非默认语言会显示语言标记
内置暗色模式与响应式移动端布局
支持 PWA:离线访问与 manifest 配置
可通过 data/siteConfig.js 配置站点标题、导航、页脚、每页文章数等
集成 Disqus 评论,并提供文章社交预览图生成命令
模板详细介绍
这是一个面向博客与内容站点的 Gatsby 启动器,同时也可以作为 Gatsby 主题通过 npm 安装到已有项目中。文章和页面使用 Markdown 或 MDX 编写,支持代码语法高亮、标签分组以及博客文章的多语言(i18n)。站点信息、导航链接、每页文章数、Disqus 短名等集中在 data/siteConfig.js 中配置。
模板内置响应式布局与暗色模式,提供 PWA 相关支持(离线与 manifest),并可为文章生成社交平台预览图。评论通过 Disqus 接入,样式使用 styled-components 的 css-in-js 方案。仓库同时提供 eslint、prettier 与 Travis CI 配置。
使用上有两点需要注意:作为主题安装时,需要在 content/images 下放置名为 baymax.png 的图片,这是主题本身的限制,该图片不会显示在网站上;另外若使用路径前缀部署,构建命令需加上 --prefix-paths。演示图片、字体、图标等第三方素材需按各自许可单独核对。
适合你的项目吗?
适用场景
- 搭建以 Markdown/MDX 为内容源的静态博客
- 在已有 Gatsby 项目中以主题形式引入博客功能
- 需要多语言文章展示与暗色模式的内容站点
- 希望接入 Disqus 评论并使用标签组织文章
适合人群
- 熟悉 Gatsby 与 React 的前端开发者
- 需要多语言博客的写作者或团队
- 计划用 Markdown/MDX 维护内容并自行配置站点信息的用户
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
用 gatsby new 或 git clone 获取启动器后执行 npm install,再运行 npm run develop 本地预览
- 2
作为主题使用时执行 npm install gatsby-starter-morning-dew,并在 gatsby-config.js 的 plugins 中加入对应配置
- 3
主题模式需在 content/images/baymax.png 放置一张图片,这是主题限制,该图不会出现在网站上
- 4
使用路径前缀部署时,构建命令需附加 --prefix-paths
- 5
文章预览图生成需先运行 npm run dev,再执行 npm run generatePostPreviewImages
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 以 Gatsby 主题方式安装时,必须在 content/images/baymax.png 放置一张图片,这是主题本身的限制;该图片不会显示在网站上。
- 若站点使用路径前缀(pathPrefix)部署,构建命令必须附加 --prefix-paths 参数,否则链接与资源路径会出错。
- 生成文章社交预览图前必须先运行 npm run dev,否则该命令无法正常生成预览图。
- 评论功能依赖 Disqus 外部服务,需在 siteConfig 中配置自己的 Disqus shortname,并受 Disqus 服务条款约束。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
Add an image called `baymax.png` in `content/images/baymax.png`. 🐞This is due to a theme limitations.
README 原文
**:warning: Add `--prefix-paths` if you are using path prefix!**
README 原文
# Generate generate post preview images (npm run dev need to run before) npm run generatePostPreviewImages
README 原文
https://github.com/maxpou/gatsby-starter-morning-dew/blob/master/LICENSEhttps://github.com/maxpou/gatsby-starter-morning-dew/blob/master/README.mddisqusShortname: 'maxpou',
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 81 / 100
- 技术栈
- Gatsby · React
- 网站类型
- 博客 · 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2023-06-10
- 截图检查日期
- 2026-10-02
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Gatsby。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: dc6787d0381600c47e17fdd026617e05d93eed09cf31d239ff493cd2cc4ab440
2026-10-02T08:07:10.309Z
来源文件 / 仓库<h1 align="center">gatsby-starter-morning-dew</h1>
<p align="center">
🚀 A gatsby-starter-morning-dew is a Gatsby starter to build lightning-fast websites!
</p>
<p align="center">
<strong>
<a href="https://maxpou.github.io/gatsby-starter-morning-dew/">Demo</a>
</strong>
</p>
<p align="center">
<a href="https://travis-ci.com/maxpou/gatsby-starter-morning-dew">
<img
alt="Build Status"
src="https://travis-ci.com/maxpou/gatsby-starter-morning-dew.svg?branch=master">
</a>
<a href="https://app.netlify.com/sites/gatsby-starter-morning-dew/deploys">
<img
alt="Netlify Status"
src="https://api.netlify.com/api/v1/badges/d68027bd-19b5-44fd-a2a3-d1f05fc8201e/deploy-status">
</a>
<a href="https://codeclimate.com/github/maxpou/gatsby-starter-morning-dew/maintainability">
<img
alt="Maintainability"
src="https://api.codeclimate.com/v1/badges/e09f1ac1a5cdb2987a6f/maintainability">
</a>
<a href="https://github.com/semantic-release/semantic-release">
<img
alt="semantic-release"
src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
</a>
<a href="https://npm-stat.com/charts.html?package=gatsby-starter-morning-dew&from=2018-02-12">
<img
alt="Total downloads on npm"
src="https://img.shields.io/npm/dy/gatsby-starter-morning-dew.svg?colorA=333a41&colorB=007dc7&maxAge=3600&label=Downloads">
<a>
</p>
<p align="center">
<img src="https://i.imgur.com/FXkc88D.png" alt="screenshot">
</p>
## Features
- [:purple_heart: Gatsby 3](https://www.gatsbyjs.org/) / React 16
- :mag: SEO optimized
- :love_letter: Write posts/pages in Markdown or [MDX](https://mdxjs.com/)
- :art: Code syntax highlight
- :books: Multilang support/i18n (blog post)
- :iphone: Mobile Friendly (Responsive design)
- :last_quarter_moon_with_face: Dark mode
- :sparkles: PWA ready
- :airplane: Offline support
- :page_with_curl: Manifest support
- [:wrench: Fully configurable (see data/siteConfig.js)](./data/siteConfig.js)
- :speech_balloon: Disqus support
- :nail_care: css-in-js (with [styled-components v5](https://www.styled-components.com))
- :bookmark: Groups post with tags
- :bird: post preview image generation (Twitter, Facebook...)
- :gem: Developer tools:
- eslint
- prettier
- :construction_worker: Travis CI support

## Installation (starter)
* with Gatsby-cli:
```bash
npm install --global gatsby-cli
gatsby new gatsby-blog https://github.com/maxpou/gatsby-starter-morning-dew
```
* without Gatsby-cli
```bash
git clone my-site [email protected]:maxpou/gatsby-starter-morning-dew.git
cd my-site
npm install
```
Then run `npm run develop` to try it locally.
## Installation (theme)
You can also use `gatsby-starter-morning-dew` as a [Gatsby theme](https://www.gatsbyjs.org/blog/2018-11-11-introducing-gatsby-themes/)!
1. Add the theme
```bash
npm install gatsby-starter-morning-dew
```
2. In your `gatsby-config.js`, add:
```js
const config = require('./data/siteConfig')
// ...
plugins: [
{
resolve: "gatsby-starter-morning-dew",
options: {},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: config.siteTitle,
short_name: config.siteTitle,
start_url: config.pathPrefix,
background_color: config.background_color,
theme_color: config.theme_color,
display: config.display,
icon: 'content/images/company-icon.png', // path to your image
},
},
],
```
3. Add an image called `baymax.png` in `content/images/baymax.png`.
🐞This is due to a theme limitations.
😬 Don't worry, this picture will not appear on your website!
Need more details? Checkout:
* [maxpou.fr source](https://github.com/maxpou/maxpou.fr): Maxence Poutord's personnal blog;
* [gatsby-groot source](https://github.com/maxpou/gatsby-groot/): a minimalist blog that use this template!
## Commands
```sh
# working locally
npm run dev
# generate build
npm run build
# format code
npm run format
# lint code
npm run lint
# Generate generate post preview images (npm run dev need to run before)
npm run generatePostPreviewImages
```
**:warning: Add `--prefix-paths` if you are using path prefix!**
## Configure
```js
module.exports = {
siteTitle: 'gatsby-starter-morning-dew',
siteDescription: 'A Gatsby theme/starter to build lightning-fast websites',
authorName: 'Maxence Poutord',
twitterUsername: '_maxpou',
authorAvatar: 'avatar.jpeg', // file in content/images
defaultLang: 'en', // show flag if lang is not default. Leave empty to enable flags in post lists
authorDescription: `
For the last decade, Maxence Poutord has worked with a variety of web technologies. He is currently focused on front-end development.
On his day to day job, he is working as a senior front-end engineer at VSware. He is also a frequent tech speaker and a mentor.
As a new digital nomad, he is living where the WIFI and sun is 😎 <br>
Do you want to know more? <a href="https://www.maxpou.fr/about" target="_blank">Visit my website!</a>
`,
siteUrl: 'https://maxpou.github.io/',
disqusSiteUrl: 'https://www.maxpou.fr/',
// Prefixes all links. For cases when deployed to maxpou.fr/gatsby-starter-morning-dew/
pathPrefix: '/gatsby-starter-morning-dew', // Note: it must *not* have a trailing slash.
siteCover: 'cover-baymax.jpeg', // file in content/images
background_color: '#ffffff',
theme_color: '#222222',
display: 'standalone',
icon: 'content/images/baymax.png',
postsPerPage: 6,
disqusShortname: 'maxpou',
headerTitle: 'gatsby-starter-morning-dew',
headerLinksIcon: 'baymax.png', // file in content/images (leave empty to disable: '')
headerLinks: [
{
label: 'Blog',
url: '/',
},
{
label: 'About',
url: '/about-gatsby-starter-morning-dew',
},
{
label: 'Installation',
url: '/how-to-install',
},
],
// Footer information (ex: Github, Netlify...)
websiteHost: {
name: 'GitHub',
url: 'https://github.com',
},
footerLinks: [
{
sectionName: 'Explore',
links: [
{
label: 'Blog',
url: '/',
},
{
label: 'About',
url: '/about-gatsby-starter-morning-dew',
},
{
label: 'Installation',
url: '/how-to-install',
},
],
},
{
sectionName: 'Follow the author',
links: [
{
label: 'Github',
url: 'https://github.com/maxpou/gatsby-starter-morning-dew',
},
{
label: 'Website',
url: 'https://www.maxpou.fr',
},
{
label: 'Twitter',
url: 'https://twitter.com/_maxpou',
},
],
},
],
}
```
## Deploy
[](https://app.netlify.com/start/deploy?repository=https://github.com/maxpou/gatsby-starter-morning-dew)看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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

devblog
A lightweight, customizable personal blog template built with GatsbyJS and React
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 · 启动器

blog-template
Scientific blog template based on theaisummer.com
Gatsby · 博客
