基于 Astro 构建,使用 Tailwind CSS 与 Preline UI 开发界面
Astrology — Astro 博客模板
作者 XahidEx
Astrology 是一个基于 Astro 的图文博客主题,使用 Tailwind CSS 与 Preline UI 构建,内置搜索、标签统计、RSS 与站点地图,支持 Markdown/MDX 写作和自动深色模式。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
目前有 1 张原始预览,可打开完整图片查看设计细节。
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
支持 Markdown 与 MDX 写作,文章放入 src/content/posts 即可发布
内置站点搜索、分页导航、标签统计与最后修改时间显示
提供站点地图与 RSS 订阅,并包含基础 SEO 配置
响应式布局,支持自动深色模式切换
站点信息、导航与社交链接集中在 src/consts.ts 配置
模板详细介绍
Astrology 是一个面向图文叙事场景的 Astro 博客主题,强调图片与文字内容的结合,适合以视觉化文章为主的博客。主题使用 Tailwind CSS 和 Preline UI 进行开发,界面为响应式设计,并提供自动深色模式切换。
内容方面,文章以 Markdown 或 MDX 文件形式放在 src/content/posts 目录下即可发布。主题内置站点搜索、分页导航、标签统计与最后修改时间显示,同时提供站点地图和 RSS 订阅支持,并针对 SEO 做了基础配置。站点信息、导航链接、社交链接等集中在 src/consts.ts 中维护。
项目采用 MIT 许可发布,可免费使用、修改和分发,但演示图片、字体、图标等第三方素材需单独核对其许可。README 中提到的 Lighthouse 满分属于作者自述,未在本次资料中独立验证。
适合你的项目吗?
适用场景
- 以图片配合长文讲述内容的个人博客
- 需要标签分类、分页与站内搜索的文章站点
- 希望通过 Markdown 或 MDX 文件管理内容的写作项目
- 需要 RSS 与站点地图输出的内容站点
适合人群
- 习惯用 Markdown/MDX 写作的内容创作者
- 需要图文混排博客主题的前端开发者
- 希望自行部署静态博客站点的个人用户
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
使用 pnpm install 安装依赖,pnpm run dev 启动本地开发服务器(默认 localhost:4321)
- 2
文章以 .md 或 .mdx 文件添加到 src/content/posts 目录
- 3
站点标题、描述、导航链接、页脚链接与社交链接在 src/consts.ts 中修改
- 4
构建产物通过 pnpm run build 输出到 ./dist/,可用 pnpm run preview 本地预览
- 5
演示图片、字体、图标等第三方素材需按各自许可单独核对
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
https://github.com/XahidEx/Astrology/blob/main/LICENSEhttps://github.com/XahidEx/Astrology/blob/main/README.mdPermission is hereby granted, free of charge
许可证原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-12。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料一般 · 74 / 100
- 技术栈
- Astro
- 网站类型
- 博客
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2025-04-23
- 截图检查日期
- 2026-10-12
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Astro。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
审核声明: [email protected] · 2026-10-13
查看当时使用的来源资料
SHA-256: 8365101ff75028dbdc72ec07505a75be20214f829364bb189a39fc61ab012ba5
2026-10-12T20:06:00.379Z
来源文件 / 仓库## 🌍Language Versions / 语言版本
🇺🇸[English](README.md) 🇨🇳[中文](README_CN.md)
## 🚀 **Astrology**: An Astro Theme for Visual Storytelling
Astrology is an Astro theme tailored for captivating photo-text storytelling.
It seamlessly merges visuals and written content, empowering creators to deliver compelling narratives with high-impact imagery.
Ideal for bloggers and content creators seeking to make their stories stand out through the fusion of striking visuals and engaging prose, Astrology provides a platform to create immersive and influential digital experiences.
<img src="public/screenshot.webp" alt="Astrology Screenshot" />
## 💯Lighthouse Score
<p align="center">
<a href="https://pagespeed.web.dev/analysis/https-astrology-monolingual-vercel-app/aqi4acrb11?form_factor=mobile">
<img width="510" alt="Astrology Lighthouse Score" src="public/astrology-lighthouse-score.svg">
<a>
</p>
## 🎉 Features
- ✅ Powered by Astro
- ✅ Development with Tailwind CSS and Preline UI
- ✅ Fully Responsive Design
- ✅ Perfect 100/100 Lighthouse Performance Score
- ✅ SEO Optimized
- ✅ Inbuilt Site Search
- ✅ Sitemap and RSS Feed Support
- ✅ Markdown & MDX Ready
- ✅ Tag Statistics and Last Modified Time Display
- ✅ Optimized Image Handling
- ✅ Automatic Dark Mode Switching
- ✅ Pagination for Easy Navigation
- ✅ Code formatted with Prettier in one click
## 🎡 Live demo
Experience [**Astrology**](https://astrology-monolingual.vercel.app) in action.
## 🌆 Showcase
Share your project built with Astrology! Open an issue titled "Showcase Submission" with your project's details to be featured in our Showcase.
## 💻 Running Locally
**Recommended extensions for VSCode:**
- [Tailwind CSS IntelliSense](https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss).
- [Astro](https://marketplace.visualstudio.com/items?itemName=astro-build.astro-vscode).
1. Fork or use this [template](https://github.com/idimilab/astrology)
2. Install dependencies:
```bash
pnpm install
```
3. Run the development server:
```bash
pnpm run dev
```
## 📄 Adding a post
Adding a post is as simple as adding a .md or .mdx file to the blog folder at the path **src/content/posts**.
## 🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
| :--------------------- | :------------------------------------------- |
| `pnpm install` | Installs dependencies |
| `pnpm run dev` | Starts local dev server at `localhost:4321` |
| `pnpm run build` | Build your production site to `./dist/` |
| `pnpm run preview` | Preview your build locally, before deploying |
| `pnpm run format` | Code formatter using prettier |
| `npx @astrojs/upgrade` | To upgrade |
### 🔧Configuration
Basic configuration file: `./src/consts.ts`
```ts
// Place any global data in this file.
// You can import this data from anywhere in your site by using the `import` keyword.
// Base Page Metadata, src/layouts/BaseLayout.astro
export const BRAND_NAME = "Astrology";
export const SITE_TITLE = "Astrology";
export const SITE_DESCRIPTION = "An Astro Theme for Visual Storytelling";
// Tags Page Metadata, src/pages/tags/index.astro
export const Tags_TITLE = "Astrology - All Tags";
export const Tags_DESCRIPTION =
"Astrology - All tags and the count of articles related to each tag";
// Tags Page Metadata, src/pages/tags/[tag]/[page].astro
export function getTagMetadata(tag: string) {
return {
title: `All articles on '${tag}' tag in Astrology`,
description: `Explore articles about ${tag} for different perspectives and in-depth analysis.`,
};
}
// Category Page Metadata, src/pages/category/[category]/[page].astro
export function getCategoryMetadata(category: string) {
return {
title: `All articles in '${category}' category in Astrology`,
description: `Browse all articles under the ${category} category in Astrology`,
};
}
// Header Links, src/components/Header.astro
export const HeaderLinks = [
{ href: "/category/One/1/", title: "One" },
{ href: "/category/Two/1/", title: "Two" },
{ href: "/category/Three/1/", title: "Three" },
];
// Footer Links, src/components/Footer.astro
export const FooterLinks = [
{ href: "/posts/why-astro/", title: "Astro" },
{ href: "/posts/tailwind-typography/", title: "Tailwind" },
{ href: "/tags/", title: "Tags" },
];
// Social Links, src/components/Footer.astro
export const SocialLinks = [
{ href: "/rss.xml", icon: "tabler:rss", label: "RSS" },
{
href: "https://twitter.com/idimilab",
icon: "tabler:brand-twitter",
label: "Twitter",
},
{
href: "https://github.com/idimilab",
icon: "tabler:brand-github",
label: "GitHub",
},
];
// Search Page Metadata, src/pages/search.astro
export const SEARCH_PAGE_TITLE = `${SITE_TITLE} - Site Search`;
export const SEARCH_PAGE_DESCRIPTION = `Search all content on ${SITE_TITLE}`;
```
## Deployment
Click the button below to start deploying your project on Vercel:
[](https://vercel.com/import/project?template=https://github.com/idimilab/astrology)
## ✨ Join and Contribute
Your contributions make Astrology better! Whether it's through code, design, bug reports, or feature ideas, we value your input. Check our Issues or submit a Pull Request to get started. Together, let's enhance Astrology!
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

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