采用原子设计目录结构,组件按 atoms、molecules、organisms 分层组织
astro-blog-starter — Astro 博客模板
作者 SofiDevO
基于 Astro 的轻量博客启动模板,采用原子设计组织组件,内置明暗主题切换、SEO 元信息与 Markdown 内容集合。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
内置明暗主题切换,并提供对应的 CSS
预置 OpenGraph 与 Meta 标签等 SEO 配置
文章使用 Markdown 与 Astro 内容集合管理,路由由 [...slug].astro 动态生成
样式为原生 CSS,未依赖 CSS 框架
集成 Iconify 图标封装组件
模板详细介绍
这是一个用于快速搭建 Astro 博客的启动模板,仓库与演示站点均可公开访问。模板自带首页、博客归档页与文章详情页,文章以 Markdown 形式存放在 content/blog 目录,并通过 content/config.ts 定义内容集合。组件按原子设计分层:atoms 包含主题切换按钮、汉堡菜单按钮、日期格式化与 Iconify 图标封装;molecules 提供博客卡片网格;organisms 提供带下拉菜单的响应式页头。导航项集中在 data/menuElements.js 中维护。样式使用原生 CSS,未引入 UI 框架。模板预置了 OpenGraph 与 Meta 标签等 SEO 相关配置,并提供明暗主题切换。
使用限制方面:模板定位为起步项目,功能范围限于博客展示与内容管理,不包含评论、搜索、CMS 后台或用户系统。演示图片、字体、图标等第三方素材的许可需单独核对,不能仅凭代码的 MIT 许可判断。README 中提到的“生产就绪配置”属于作者自述,本介绍不对其生产可用性做判断。
适合你的项目吗?
适用场景
- 从零搭建一个以 Markdown 写作的个人博客
- 作为学习 Astro 内容集合与动态路由的示例项目
- 需要一个带明暗主题和响应式导航的博客前端起点
- 在原子设计结构基础上扩展自定义组件
适合人群
- 熟悉 Markdown 并希望用 Astro 发布文章的开发者
- 需要轻量、无 UI 框架依赖博客模板的前端开发者
- 希望参考原子设计组织 Astro 组件结构的学习者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
可通过 npm create astro@latest -- --template SofiDevO/astro-blog-starter 创建项目,或克隆仓库后执行 npm install
- 2
开发服务器默认运行在 4321 端口,使用 npm run dev 启动,npm run build 构建生产版本
- 3
文章放在 src/content/blog 目录,导航项在 src/data/menuElements.js 中配置
- 4
代码采用 MIT 许可,分发时需保留版权声明与许可声明;演示图片、字体、图标等第三方素材需单独核对许可
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
- README 设有 GitHub Sponsors 与 Ko-fi 赞助入口,属于自愿捐赠支持,并非使用模板的付费前提;模板本身仍按 MIT 免费提供。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
https://github.com/SofiDevO/astro-blog-starter/blob/main/LICENSEhttps://github.com/SofiDevO/astro-blog-starter/blob/main/README.md## Support Development ☕ [](https://github.com/sponsors/SofiDevO?o=esb) [](https://ko-fi.com/sofidev)
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-05。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- Astro Themes
- 资料与维护参考分
- 资料较完整 · 82 / 100
- 技术栈
- Astro
- 网站类型
- 博客 · 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2025-04-04
- 截图检查日期
- 2026-10-05
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Astro。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-06
查看当时使用的来源资料
SHA-256: 4481376cbca6d35088ebd0cf33d6a579f29625f1de92e145bdaeba6bda64b82a
2026-10-05T16:25:05.648Z
来源文件 / 仓库
# Astro Blog Starter 🌟
A lightweight starter template with atomic design structure, SEO optimization, and modern features. Perfect for fast-paced development!
## Features ✨
- ⚡ SEO Pre-configured (OpenGraph, Meta Tags)
- 🌓 Light/Dark theme toggle
- 🧩 Atomic Design structure
- 🪝 Dynamic dropdown menu
- 🎨 Vanilla CSS (no frameworks)
- 📦 Iconify integration
- 🚀 Production-ready configuration
## Installation ⚙️
```bash
# Clone template
npm create astro@latest -- --template SofiDevO/astro-blog-starter
# Install dependencies
npm install
# Start dev server (port 4321)
npm run dev
# Build for production
npm run build
````
[](https://opensource.org/licenses/MIT)
[](https://astro.build)

## Key Components 🔑
### Atomic Design Implementation
- **Atoms**:
`ToggleTheme.astro` (+ CSS) | `HamburgerButton.astro` | `FormattedDate.astro`
- **Molecules**:
`Blogcards.astro` (Post grids)
- **Organisms**:
`Header.astro` (Responsive nav with dropdowns)
### Content Management
```astro
// Example blog post (content/blog/post.md)
---
title: "My First Post"
date: 2024-01-01
---
Article content...
```
## Core Structure 🌐
```
src/
├── components/
│ ├── atoms/
│ │ ├── CardBlog/ # Blog post cards
│ │ ├── HamburgerButton/ # Mobile menu toggle
│ │ ├── Icons/ # Iconify wrapper
│ │ ├── ToggleTheme/ # Dark/light switcher (+ CSS)
│ │ └── utilsComponents/ # Date formatter
│ ├── molecules/
│ │ └── Blogcards/ # Blog post grid system
│ └── organisms/
│ ┗── Header/ # Navigation with dropdowns
├── content/
│ ├── blog/ # Markdown posts
│ └── config.ts # Content collection config
├── data/
│ └── menuElements.js # Navigation items
├── layouts/
│ ├── Layout.astro # Default layout
│ └── LayoutBlogPost.astro # Article template
├── pages/
│ ├── blog/
│ │ ├── [...slug].astro # Dynamic blog routes
│ │ └── index.astro # Blog archive
│ └── index.astro # Homepage
└── styles/
└── global.css # Base styles
```
## Support Development ☕
[](https://github.com/sponsors/SofiDevO?o=esb)
[](https://ko-fi.com/sofidev)
---
**MIT Licensed** | Optimized for Astro v5+ | [Full Documentation](https://github.com/SofiDevO/astro-blog-starter)
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

astrowind
⭕️ AstroWind: A free template using Astro v7 and Tailwind CSS v4. Astro starter theme.
Astro · 博客

astro-paper
A minimal, accessible and SEO-friendly Astro blog theme.
Astro · 博客

fuwari
✨A static blog template built with Astro.
Astro · 博客

Firefly
Firefly 是一款基于 Astro 的静态博客主题,由 CuteLeaf 在 saicaca 的 Fuwari 模板基础上二次开发,主打清新美观的视觉风格。
Astro · 博客

astro-theme-cactus
A simple Astro theme. Use it to create your blog or website.
Astro · 作品集

astrofy
Astrofy is a free and open-source template for your Personal Portfolio Website built with Astro and TailwindCS…
Astro · 作品集
