基于 Astro Solitude 主题,使用 Astro 构建静态博客
geauxcode.dev — Astro 博客模板
作者 GeauxWeisbeck4
基于 Astro Solitude 主题搭建的个人博客项目,使用 Astro 与 Markdown/MDX 写作,支持静态部署。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
目前有 1 张原始预览,可打开完整图片查看设计细节。
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
内容以 Markdown / MDX 撰写,支持 Shiki 语法高亮与 KaTeX 数学公式
提供分类、标签、系列、归档、分页、置顶、草稿、自定义 URL 与别名等文章管理能力
内置明暗模式、图片灯箱、键盘快捷键、右键菜单与跨页面持续播放的音乐胶囊
搜索支持本地搜索、Algolia、DocSearch,并提供 RSS 与 sitemap
评论可接入 Twikoo、Waline、Valine、Artalk、Giscus,按配置加载
模板详细介绍
这是 GeauxWeisbeck4 的个人博客仓库 geauxcode.dev,由 Astro Solitude 主题(作者 @everfu)生成。项目使用 Astro 构建,内容以 Markdown / MDX 撰写,可输出静态页面并部署到托管平台或自有服务器。
主题本身提供较完整的内容组织与阅读功能:文章卡片、推荐、侧边栏、目录、相关文章、版权声明与捐赠链接;写作侧支持 Markdown / MDX、41 个内容组件、Shiki 语法高亮与 KaTeX 数学公式。文章管理涵盖分类、标签、系列、归档、分页、置顶、草稿、自定义 URL 与别名。另有 About、Links、Equipment、Music、留言板、短文、最新评论与 404 等页面。
交互与集成方面,主题内置明暗模式、图片灯箱、键盘快捷键、右键菜单、跨页面持续播放的音乐胶囊;搜索支持本地搜索、Algolia、DocSearch,并提供 RSS 与 sitemap;评论可接入 Twikoo、Waline、Valine、Artalk、Giscus,按配置加载。界面默认英文,内置简体中文、繁体中文与西班牙语翻译。
仓库中的示例文章与页面、本地搜索默认启用;评论、评论聚合与在线音乐在空服务标识下处于关闭状态。使用前需替换示例内容、图片与站点身份信息,并配置自己的外部服务。切换界面语言不会翻译文章或自定义导航。
适合你的项目吗?
适用场景
- 搭建个人技术博客或笔记站点,并用 Markdown / MDX 持续写作
- 需要分类、标签、系列、归档与相关文章来组织长期内容
- 希望输出静态文件并部署到托管平台或自有服务器
- 需要接入评论系统、RSS、sitemap 或 Algolia / DocSearch 搜索
- 需要明暗模式、图片灯箱、音乐胶囊等阅读与交互细节
适合人群
- 熟悉 Astro 与 Markdown / MDX 的个人博主
- 希望以静态方式发布内容并自行托管或部署到静态托管平台的开发者
- 需要多语言界面(英文、简体中文、繁体中文、西班牙语)的站点维护者
- 愿意自行配置评论、搜索、音乐等外部服务的用户
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
需要 Node.js 22.12.0+ 与 pnpm,并使用 package.json 中 packageManager 指定的 pnpm 版本
- 2
克隆仓库后执行 pnpm install --frozen-lockfile 与 pnpm dev 预览示例内容
- 3
编辑 src/site.config.ts 设置站点 URL、标题、作者、导航与主题选项;子目录部署需设置 base
- 4
示例文章与页面、本地搜索默认启用;评论、评论聚合与在线音乐在空服务标识下关闭,需按集成指南接入自己的服务
- 5
发布前替换示例内容、图片与站点身份信息;切换界面语言不会翻译文章或自定义导航
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 Apache-2.0 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发;分发时需随附 Apache-2.0 许可证。
- 修改过的文件需显著标明改动,并保留相关版权、专利、商标及归属声明。
- 若原项目附有 NOTICE 文件,分发衍生作品时需保留其中适用的归属声明。
- 许可包含适用的贡献者专利授权;发起许可所述专利诉讼会终止该专利授权,且不授予商标使用权。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 评论、评论聚合与在线音乐默认关闭,需自行接入 Twikoo、Waline、Valine、Artalk、Giscus 等第三方服务并配置相应服务标识,可能涉及外部账号或费用。
- Algolia 与 DocSearch 属于第三方搜索服务,启用时需自行注册账号并提供 API 密钥,可能受其服务条款与费用限制。
- 发布前必须替换示例文章、图片与站点身份信息,示例内容与图片不应直接用于正式站点。
- 切换界面语言仅影响内置界面文案,不会翻译文章内容或自定义导航。
- 运行与构建需要 Node.js 22.12.0 及以上版本及 pnpm 包管理器。
- 修改或再分发时须保留 Apache-2.0 许可证与版权声明,并标注已修改的文件。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 Apache-2.0 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
no-charge, royalty-free, irrevocable copyright license
许可证原文
Comments, comment aggregation, and online music are disabled with empty service identifiers. Follow the [integration guide](docs/integrations.md) to connect your own services.
README 原文
Search and feeds**: local search, Algolia, DocSearch, RSS, and sitemap.
README 原文
Replace sample content, images, and site identity before publishing.
README 原文
Changing the interface locale does not translate posts or custom navigation.
README 原文
Install Node.js **22.12.0+** and pnpm.
README 原文
https://github.com/GeauxWeisbeck4/geauxcode.dev/blob/main/LICENSEhttps://github.com/GeauxWeisbeck4/geauxcode.dev/blob/main/README.mdRetain the applicable license and copyright notices when modifying or redistributing the project.
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-01。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 68 / 100
- 技术栈
- Astro
- 网站类型
- 博客
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-09-29
- 截图检查日期
- 2026-10-01
目前没有记录演示链接。请依据仓库说明在本地评估;仅凭截图无法确认交互行为。
目录记录的主要技术栈是 Astro。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: 7d9dfc4e1eceb048153aa6616827aaa86af8dd7701459b65da62b777c12adb59
2026-10-01T14:41:03.816Z
来源文件 / 仓库English 丨 [简体中文](README.zh-CN.md)
<div align="center">
<img src="public/img/logo.png" width="120" height="120" alt="Astro Solitude paper airplane logo" />
# Astro Solitude
A clean, elegant, feature-rich blog theme for Astro.
Build your personal blog with static pages, Markdown / MDX, light and dark modes, and a rich collection of content components.
[](https://astro.build/)
[](package.json)
[](LICENSE)
[](https://github.com/everfu/astro-solitude/actions/workflows/check.yml)
[](https://github.com/everfu/astro-solitude/stargazers)
[Use this template](https://github.com/everfu/astro-solitude/generate) · [Documentation](docs/README.md) · [Quick start](#quick-start) · [Configuration](docs/configuration.md) · [Components](docs/components.md) · [Deployment](docs/deployment.md) · [Report an issue](https://github.com/everfu/astro-solitude/issues)
</div>

## Features
- **Layout and reading**: responsive post cards, recommendations, sidebar, table of contents, related posts, copyright notices, and donation links.
- **Writing**: Markdown / MDX, 41 content components, Shiki syntax highlighting, and KaTeX math rendering.
- **Post management**: categories, tags, series, archives, pagination, pinned posts, drafts, custom URLs, and aliases.
- **Special pages**: About, Links, Equipment, Music, Message Board, short posts, Recent Comments, and 404.
- **Interactions**: light and dark modes, image lightbox, keyboard shortcuts, context menu, and a music capsule that persists across page navigation.
- **Search and feeds**: local search, Algolia, DocSearch, RSS, and sitemap.
- **Comments**: Twikoo, Waline, Valine, Artalk, and Giscus, loaded according to configuration.
- **Interface languages**: English by default, with Simplified Chinese, Traditional Chinese, and Spanish.
- **Static deployment**: generate static files for a hosting platform or your own server.
## Quick start
### 1. Get the project
Install Node.js **22.12.0+** and pnpm. Use the pnpm version specified in the `packageManager` field of [package.json](package.json).
Click [Use this template](https://github.com/everfu/astro-solitude/generate) to create an independent repository, then clone your copy (replace `YOUR_NAME` and `my-blog`):
```sh
git clone https://github.com/YOUR_NAME/my-blog.git
cd my-blog
pnpm install --frozen-lockfile
pnpm dev
```
Open the local URL shown in your terminal to preview the theme and sample content.
### 2. Configure your site
Edit [`src/site.config.ts`](src/site.config.ts) to set your site URL, title, author, navigation, and theme options. Here is a minimal configuration:
```ts
import { defineSolitudeConfig } from './lib/config';
export default defineSolitudeConfig({
site: 'https://example.com',
title: 'My blog',
description: 'Notes, stories, and discoveries.',
locale: 'en',
author: { name: 'Your name' },
});
```
For a site hosted under a subdirectory, also set `base`, for example `base: '/blog/'`. See [Configuration](docs/configuration.md) for all options.
The template includes sample posts and pages with local search enabled. Comments, comment aggregation, and online music are disabled with empty service identifiers. Follow the [integration guide](docs/integrations.md) to connect your own services. Replace sample content, images, and site identity before publishing. Changing the interface locale does not translate posts or custom navigation.
### 3. Start writing
Create a Markdown or MDX file in `src/content/posts/`, such as `hello-world.md`:
```md
---
title: Hello, world
date: 2026-09-11
description: My first post.
tags: [Life]
---
Start your story here.
```
The default URL is `/p/hello-world/`. Use `slug`, `url`, and `aliases` to customize addresses. Set `draft: true` for drafts, or `home: false` to hide a post from homepage areas while keeping it in archives, search, RSS, and direct links.
See [Front matter](docs/writing.md#front-matter) and [MDX components](docs/components.md) for more writing options.
### 4. Build and deploy
```sh
pnpm build
pnpm preview
```
Publish the generated `dist/` directory to your hosting platform. Set the build command to `pnpm build` and the output directory to `dist`. Use `pnpm install --frozen-lockfile` during dependency installation.
See [Deployment](docs/deployment.md) for hosting instructions and path configuration.
## Documentation
The template, sample content, and documentation use English by default. Built-in interface translations are available in Simplified Chinese, Traditional Chinese, and Spanish. Start with the [documentation index](docs/README.md).
| Guide | Contents |
| ------------------------------------------ | --------------------------------------------------------- |
| [Getting started](docs/getting-started.md) | Create a template copy, install, write your first post |
| [Configuration](docs/configuration.md) | Site identity, appearance, navigation, defaults |
| [Writing](docs/writing.md) | Front matter, drafts, categories, URLs, feeds |
| [Pages](docs/pages.md) | About, links, equipment, short updates |
| [Components](docs/components.md) | Usage, parameters, and examples for all 41 MDX components |
| [Integrations](docs/integrations.md) | Comments, music, external search |
| [Deployment](docs/deployment.md) | GitHub Pages, static hosts, subpaths |
| [Hugo import](docs/migration.md) | Preview, export, verify migrated content |
| [FAQ](docs/faq.md) | Troubleshooting and theme updates |
<details>
<summary>More previews: dark mode and mobile reading</summary>


</details>
## Project structure
```text
astro-solitude/
├── public/ # Images, fonts, and other static assets
├── src/
│ ├── components/ # Theme and MDX components
│ ├── content/
│ │ ├── posts/ # Blog posts
│ │ └── pages/ # Custom pages
│ ├── data/ # About, links, equipment, and short-post data
│ ├── layouts/ # Page layouts
│ ├── pages/ # Astro routes
│ ├── styles/custom.css # Custom styles
│ └── site.config.ts # Site configuration
├── docs/ # Documentation
└── astro.config.mjs # Astro configuration
```
## Contributing
Use [Issues](https://github.com/everfu/astro-solitude/issues) for bug reports and suggestions. [Pull requests](https://github.com/everfu/astro-solitude/pulls) improving the theme, documentation, and translations are welcome. Include reproduction steps, your environment, and relevant configuration when reporting a problem.
Run these checks before submitting changes:
```sh
pnpm docs:check
pnpm check
pnpm build
pnpm test
```
For changes to page interactions, also run the browser tests:
```sh
pnpm build:fixture
pnpm exec playwright install chromium
pnpm test:e2e
```
Browser tests use an isolated fixture site. Mocked third-party tests do not establish that live services work. See the [development validation report](docs/parity.md) for test coverage and source comparisons.
## License
[Apache-2.0](LICENSE) License © 2026–present [everfu](https://github.com/everfu). Retain the applicable license and copyright notices when modifying or redistributing the project.
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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