Skip to content

Latest commit

 

History

History
107 lines (70 loc) · 3.6 KB

README-zh-CN.md

File metadata and controls

107 lines (70 loc) · 3.6 KB

Astro Theme Pure

English | 简体中文

一个由 Astro 构建的轻便简洁、快速强大的博客主题。

GitHub deployments NPM Version GitHub Release GitHub License

image image

Caution

我们目前正在积极开发升级到 Astro v5 和 NPM 包方法。新版本已知问题:

  1. 无法在 Vercel 上打包站点地图和 pagefind 资源(需要上游修复 & 临时修复)
  2. Head 标签和自定义选项仍在开发中(已经暴露模板直接改)
  3. Rehype 标题链接在 NPM 模块链接方法中无法按预期工作(用户无影响)

稳定版本目前为 v3.1.4

简介

查看 预览 →

🔥 特性

  • 🚀 快速高性能
  • ⭐ 简单干净的设计
  • 📱 响应式设计
  • 🔍 使用 pagefind 构建的全站搜索
  • 🗺️ 站点地图和 RSS 订阅
  • 🕸️ 友好的 SEO
  • 📖 目录(table of contents)
  • 🖼️ 动态为文章生成可供三方媒体预览的分享图像
  • 🖼️ Mediumzoom 图像灯箱

📦 组件

主题包含了许多组件,不仅可以在主题中使用,还可以在其他 Astro 项目中使用。

对于其他 Astro 项目,需要 Tailwind CSS。

  • 基础组件:AsideTabsTimelineStepsSpoiler...
  • 高级组件:GithubCardLinkPreviewQuoteQRCode...

✅ Lighthouse 分数

lighthouse-score

文档

文档 | 展示台

NPM 包

在 NPM 上查看:astro-theme-pure

本地开发

环境要求:

克隆存储库:

git clone https://github.com/cworld1/astro-theme-pure.git
cd astro-theme-pure

有用的命令:

# install dependencies
bun install

# start the dev server
bun dev

# build the project
bun run build

# preview (after the build)
bun preview

# create a new post
bun new-post

贡献

为了花更多时间编写代码,减少在空白上纠结的时间,本项目使用代码约定和样式来鼓励一致性。风格一致的代码更容易(且更不容易出错)进行审查、维护和理解。

鸣谢

许可证

本项目基于 Apache 2.0 许可证。

Star History Chart