内置深色与浅色模式切换
astro-starter-pro — Astro 博客模板
作者 devgelo-labs
Astro Starter Pro 是一个基于 Astro 的免费开源启动模板,内置博客、企业官网所需页面与 SEO 配置,采用 MIT 许可。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 3
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
自动生成 meta 标签、JSON-LD 结构化数据、RSS、Open Graph、Twitter Cards 与 Sitemap
使用 Intersection Observer 实现滚动揭示动画
通过 Astro 内容集合管理 Markdown/MDX 博客文章
提供 Navbar、Footer 与基础布局等可复用组件
包含 ESLint、Prettier、astro check 与 TypeScript 类型检查脚本
模板详细介绍
Astro Starter Pro 由 devgelo-labs 维护,是一个面向内容型网站的 Astro 启动模板,仓库采用 MIT 许可,可免费使用、修改、商用和分发该版本代码。模板以 SEO 与最佳实践为设计重点,内置深色/浅色模式、自动 meta 标签、JSON-LD 结构化数据、RSS 订阅、Open Graph、Twitter Cards 与原生 Sitemap,并包含基于 Intersection Observer 的滚动揭示动画。
项目使用 Astro 内容集合管理博客文章,在 src/content/blog/ 下新增 .md 或 .mdx 文件即可发布,frontmatter 支持 title、description、pubDate、author、image、tags、category 等字段。站点全局信息集中在 src/config/site.ts,可配置站点名称、描述、URL、语言、作者、社交链接与导航项。目录结构区分了 public 静态资源、src/assets 待处理资源、components、config、content、layouts、pages、styles 与 types,并提供 ESLint、Prettier、astro check 与 TypeScript 类型检查等脚本。
模板提供首页、关于、服务、博客、联系与组件示例等页面,演示站为 astrostarterpro.com。使用前需注意:MIT 许可仅覆盖该版本代码,演示图片、字体、图标等第三方素材需按各自许可核对;域名、托管、数据库、支付或 AI 等外部服务可能另行收费。README 中提到的 PageSpeed 评分等性能数据属于项目自述,未在本资料中独立验证。
适合你的项目吗?
适用场景
- 搭建以博客内容为主的个人或团队站点
- 构建需要 SEO 基础配置的企业官网
- 作为 Astro 项目的起步模板,在其上扩展页面与组件
- 需要深色/浅色模式与滚动动画的内容型网站
适合人群
- 熟悉 Astro 或愿意学习 Astro 内容集合的开发者
- 需要开箱即用 SEO 配置的博客或官网项目
- 希望以 MIT 许可免费使用并自行修改代码的团队
- 偏好 Markdown/MDX 写作流程的内容维护者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
克隆仓库后执行 npm install,再用 npm run dev 启动本地开发服务器(默认 localhost:4321)
- 2
在 src/config/site.ts 中替换站点名称、描述、URL、作者、社交链接与导航项
- 3
博客文章放在 src/content/blog/ 目录,需按 frontmatter 字段填写 title、description、pubDate 等
- 4
npm run build 生成静态站点到 dist/ 目录,npm run preview 可本地预览生产构建
- 5
使用前请核对演示图片、字体、图标等第三方素材的许可,外部服务可能另行收费
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
https://github.com/devgelo-labs/astro-starter-pro/blob/main/LICENSEhttps://github.com/devgelo-labs/astro-starter-pro/blob/main/README.mdPermission is hereby granted, free of charge
许可证原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- Astro Themes
- 资料与维护参考分
- 资料较完整 · 92 / 100
- 技术栈
- Astro
- 网站类型
- 博客 · 企业官网 · 启动器
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-07-05
- 截图检查日期
- 2026-10-03
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Astro。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-04
查看当时使用的来源资料
SHA-256: d984c5012f7e1322afa744e6b7ad654a1461d158ad6d3a9838d23951a49181a1
2026-10-03T22:43:44.613Z
来源文件 / 仓库# 🚀 Astro Starter Pro
**Astro Starter Pro** is a professional, open-source template for building fast websites using **[Astro 5](https://astro.build/) + [Tailwind CSS 4](https://tailwindcss.com/)**. Designed with industry best practices, optimized SEO, and a modern development experience.
<br>
[](https://github.com/devgelo-labs/astro-starter-pro)
[](https://github.com/devgelo-labs/astro-starter-pro)
[](./LICENSE)
[](https://astro.build/)
[](https://tailwindcss.com/)
[](https://github.com/devgelo-labs)
<br>
<details open>
<summary>Table of Contents</summary>
- [Demo](#demo)
- [Features](#features)
- [Tech Stack](#tech-stack)
- [Project Structure](#project-structure)
- [Quick Start](#quick-start)
- [Configuration](#configuration)
- [Content Management](#content-management)
- [Commands](#commands)
- [Support the Project](#support-the-project)
- [License](#license)
</details>
<br>
## Demo
📌 [https://astrostarterpro.com/](https://astrostarterpro.com/)
## Features
- ✅ **Dark & Light Mode**: Clean implementation.
- ✅ **Optimized SEO**: Automatic meta tags, Structured Data (JSON-LD), RSS Feed, Open Graph, Twitter Cards, and native Sitemap.
- ✅ **Native Scroll Animations**: High-performance, JS-light scroll reveal animations using `Intersection Observer`.
- ✅ **Clean Architecture**: Organized and scalable code.
- ✅ **Reusable Components**: Navbar, Footer, and modern Layouts with Tailwind v4.
<br>
<img alt="Image" src="./.github/astro-starter-pro.webp" />
<br>
<img alt="PageSpeed Insights Score 100/100" src="https://github.com/user-attachments/assets/541d4bfc-bcb9-4287-bd91-08564108d706" />
<br>
## Tech Stack
This template is built with modern, high-performance technologies:
- **[Astro 5](https://astro.build/)**: The web framework for building content-driven websites.
- **[Tailwind CSS 4](https://tailwindcss.com/)**: A utility-first CSS framework for rapid UI development.
- **[TypeScript](https://www.typescriptlang.org/)**: Strongly typed programming language that builds on JavaScript.
- **[MDX](https://mdxjs.com/)**: Markdown for the component era, allowing you to use JSX in your markdown content.
<br>
## Project Structure
A quick overview of the folder structure to help you understand where everything is located:
```text
/
├── public/ # Static assets (fonts, favicon, images outside of processing)
├── src/
│ ├── assets/ # Images and assets to be processed by Astro
│ ├── components/ # Reusable UI components (Navbar, Footer, SEO, etc.)
│ ├── config/ # Centralized site configuration (site.ts)
│ ├── content/ # Blog posts and content collections (Markdown/MDX)
│ ├── layouts/ # Base page layouts
│ ├── pages/ # File-based routing (pages and endpoints)
│ ├── styles/ # Global CSS and Tailwind directives
│ ├── types/ # TypeScript type definitions
│ └── content.config.ts # Astro Content Collections configuration
├── astro.config.mjs # Astro configuration file
└── tailwind.config.mjs # Tailwind CSS configuration
```
<br>
## Quick Start
To start with this project locally, clone the repository and install dependencies:
```bash
# Clone the repository
git clone https://github.com/devgelo-labs/astro-starter-pro.git
# If you like it, don't forget to leave a star! ⭐
cd astro-starter-pro
npm install
npm run dev
```
<br>
## Configuration
All global site information is managed in `src/config/site.ts`. Update this file with your data:
```typescript
// src/config/site.ts
import ogImage from "../assets/og-image.png";
export const siteConfig = {
name: "Astro Starter Pro",
description:
"Starter template optimized for SEO and performance. A solid foundation to start your projects with best practices.",
url: "https://astrostarterpro.com",
lang: "en",
locale: "en_US",
author: "Devgelo",
twitter: "@Devgelo",
ogImage: ogImage,
socialLinks: {
twitter: "https://twitter.com",
github: "https://github.com/devgelo-labs/astro-starter-pro",
discord: "https://discord.com",
},
navLinks: [
{ text: "Home", href: "/" },
{ text: "About", href: "/about" },
{ text: "Services", href: "/services" },
{ text: "Blog", href: "/blog" },
{ text: "Contact", href: "/contact" },
{ text: "Widgets", href: "/widgets" },
],
};
```
## Content Management
This template uses **Astro Content Collections** to manage blog posts.
To add a new blog post, simply create a new `.md` or `.mdx` file inside the `src/content/blog/` directory.
### Frontmatter Schema
Each blog post must include the following frontmatter at the top of the file:
```yaml
---
title: "Your Post Title"
description: "A brief summary of your post for SEO."
pubDate: 2024-03-20
author: "Author Name"
image: "/images/your-cover-image.webp" # Optional
tags: ["Astro", "Tailwind"] # Optional
category: "Web Development" # Optional
---
Your markdown or MDX content goes here...
```
<br>
## Commands
| Command | Action |
| :------------------ | :------------------------------------------------- |
| `npm run dev` | Starts the development server at `localhost:4321`. |
| `npm run build` | Generates the static site in the `dist/` folder. |
| `npm run preview` | Previews the production build locally. |
| `npm run lint` | Runs ESLint to ensure code quality. |
| `npm run format` | Formats code with Prettier. |
| `npm run fix` | Runs format and lint auto-fix. |
| `npm run check` | Runs astro check for diagnostics. |
| `npm run typecheck` | Verifies TypeScript types. |
<br>
## Support the Project
If you find this starter useful, please consider giving it a ⭐ on GitHub! It helps more people discover the project.
<br>
## License
This project is under the **MIT** license. See the [LICENSE](./LICENSE) file for more details.
## 🤝 Contributing
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
1. **Fork** the Project
2. Create your **Feature Branch** (`git checkout -b feature/AmazingFeature`)
3. **Commit** your Changes (`git commit -m 'Add some AmazingFeature'`)
4. **Push** to the Branch (`git push origin feature/AmazingFeature`)
5. Open a **Pull Request**
For more details, please check our [Contributing Guide](./CONTRIBUTING.md).
---
Designed by [Devgelo Labs](https://github.com/devgelo-labs)
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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 · 作品集
