用 Astro、Svelte 和原生 CSS 构建的极简博客主题
aurora — Astro 博客模板
作者 thiloho
aurora 是一个用 Astro、Svelte 和原生 CSS 构建的极简博客主题,重点放在可访问性与可用性上,通过导航栏右侧的三个下拉菜单提供目录、文章搜索和主题切换功能。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
三个下拉菜单集中在顶部导航栏右侧,分别提供目录、搜索和主题切换
支持键盘快捷键:Shift + c 打开目录,Shift + s 打开搜索,Shift + t 切换主题,Esc 关闭菜单
目录列出页面中的二级标题(h2),便于页面内导航
搜索支持标题关键词乱序、缺字母和多空格等匹配方式
主题切换提供 Light、Dark 和 System 三种模式
模板详细介绍
aurora 是一个面向博客的 Astro 主题,使用 Astro、Svelte 和原生 CSS 构建,定位是极简风格,主要关注可访问性和可用性。
网站的交互集中在顶部导航栏右侧的三个下拉菜单中,每个菜单都有键盘快捷键:目录为 Shift + c,文章搜索为 Shift + s,主题切换为 Shift + t,按 Esc 关闭菜单。目录会列出页面中的二级标题(h2),方便在页面内跳转。搜索使用作者自行实现的简单算法,支持标题关键词乱序、缺字母、多空格等匹配方式。主题切换提供 Light、Dark 和 System 三种模式,System 会继承浏览器或操作系统的主题。样式保持简单,并对部分元素做了小调整以维持一致性和响应式表现。
博客文章通过 Astro 内容集合创建,单篇文章的图片存放在 /src/assets/blog/文章名/ 目录下。仓库中包含示例文章可供参考。
需要留意的是,README 中提到的 Svelte 并未出现在该模板的依赖清单中,因此这里只按资料描述记录,不对其实际使用情况做进一步判断。
适合你的项目吗?
适用场景
- 搭建以文字内容为主、结构简单的个人博客
- 需要页面内目录导航和站内文章搜索的博客站点
- 希望访客能通过键盘快捷键操作目录、搜索和主题切换的场景
- 需要提供浅色、深色和跟随系统三种主题模式的博客
适合人群
- 使用 Astro 内容集合管理文章的博客作者
- 重视可访问性和键盘操作体验的站点
- 偏好极简样式和原生 CSS 的项目
- 需要站内搜索和页面目录功能的个人博客
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
将 astro.config.ts 中 site 属性的域名替换为自己的域名
- 2
修改 /src/pages/index.astro 中 PageLayout 的 title 和 description 属性以匹配站点内容
- 3
在 Head.astro 和 Footer.astro 组件中把 Your Name 替换为实际姓名
- 4
通过编辑 src/content/about/about.md 中的 Markdown 文本修改首页关于部分
- 5
替换 /public/cover.jpg 可更改链接分享时显示的封面图
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
https://github.com/thiloho/aurora/blob/main/LICENSEhttps://github.com/thiloho/aurora/blob/main/README.mdPermission is hereby granted, free of charge
许可证原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 72 / 100
- 技术栈
- Astro
- 网站类型
- 博客
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2024-09-21
- 截图检查日期
- 2026-10-02
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Astro。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: b557018d999293fb88a08053b94f5fe7a7c83751f9f90204ddcf80013fccd0e0
2026-10-02T09:52:49.124Z
来源文件 / 仓库# aurora
## About
aurora is a minimal blog theme built with Astro, Svelte and plain CSS. It is focused on accessibility and usability.
All the interactiveness of the website is packed into three dropdowns that are located at the right of the top navigation bar. Every menu can be opened with a simple keyboard shortcut:
- Table of contents: **Shift + c**
- Search for an article: **Shift + s**
- Theme toggle: **Shift + t**
- Close menu: Escape (**Esc**)
The styles are simple, there are small improvements for some elements to keep everything consistent and responsive.
### Table of contents
Secondary headings (`<h2>`) are listed here, so each page is easy to navigate.
### Search
I wrote a simple algorithm for the search, and the matching works well. You can write the blog title words in any order, leave letters out, have multiple spaces between words, and more.
### Theme toggle
There are three websites themes: Light, Dark and System (inherits the theme of your browser or operating system).
## Make the theme yours
Replace the domain specified for the `site` property in the `astro.config.ts` file with your own domain:
```ts
site: "https://aurora.thilohohlt.com"
```
Change the `title` and `description` props in `/src/pages/index.astro` to match your website's content:
```html
<PageLayout title="aurora" description="Minimalistic blog theme built with Astro, focused on accessibility and usability.">
```
For the components `Head.astro` and `Footer.astro`, replace *Your Name* with your actual name:
```html
<meta name="author" content="Your Name" />
```
```html
<small>Copyright © {currentDateYear} Your Name<br><a href="https://aurora.thilohohlt.com/">Astro aurora theme</a></small>
```
The about section on the main page can be modified by adjusting the markdown text in the file `src/content/about/about.md`:
```md
## About
aurora is a minimal blog theme built with Astro, Svelte and plain CSS. It is focused on accessibility and usability.
...
```
The cover image (the image people see embedded when you send a link to your website) can be changed by altering the file `/public/cover.jpg`.
Blog articles are created using Astro content collections, images for individual articles are stored in `/src/assets/blog/article-name/image-name.jpg`. You can take a look at the example articles in this repository to see how it all works out.
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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