Skip to content

Meursault0110/ZaoBlog

Repository files navigation

Astro Theme Pure

English | 简体中文

A simple, fast and powerful blog theme built by Astro.

GitHub deployments NPM Version GitHub License

Caution

🚧🚧🚧 We are currently on develop about upgrading to Astro v5 and developing npm package method 🚧🚧🚧

Known issues for new version: a. Cannot use Node v22 on Vercel (waiting for new release); b. Cannot pack sitemap and pagefind resources on Vercel (waiting for fixing)

If you want to have a stable experience, try v3.1.4 instead. We'll release new version if the it is enough stable for users. And any feedback of newly unreleased code is also welcome.(除非你只是来帮忙做测试,请不要在任何生产环境中使用非稳定版本!)

image image

Introduction

Checkout Demo Site →

🔥 Features

  • 🚀 Fast & high performance
  • ⭐ Simple & clean design
  • 📱 Responsive design
  • 🔍 Full-site search built with pagefind
  • 🗺️ Sitemap & RSS feed
  • 🕸️ SEO-friendly
  • 📖 TOC (table of contents)
  • 🖼️ Dynamic open graph generation for posts
  • 🖼️ Mediumzoom lightbox for images

📦 Components

Theme includes a lot of components, which can not only be used in the theme, but also in other astro projects.

For other astro projects, Tailwind CSS is required.

  • Basic components: Aside, Tabs, Timeline, Steps, Spoiler...
  • Advanced components: GithubCard, LinkPreview, Quote, QRCode...

✅ Lighthouse score

lighthouse-score

Documentation

Docs | Showcase

Package

See astro-theme-pure on npm.

Local development

Environment requirements:

Clone the repository:

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

Useful commands:

# 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

Contributions

To spend more time coding and less time fiddling with whitespace, this project uses code conventions and styles to encourage consistency. Code with a consistent style is easier (and less error-prone!) to review, maintain, and understand.

Thanks

License

This project is licensed under the Apache 2.0 License.

Star History Chart