English | 简体中文
A simple, fast and powerful blog & document theme built by Astro.
Note
Known issues: Header & customize options is still under development (template exposed still).
Checkout Demo Site →
- 🚀 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
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, UnoCSS is required. See Package README for more details.
- Basic components:
Aside,Tabs,Timeline,Steps,Spoiler... - Advanced components:
GithubCard,LinkPreview,Quote,QRCode...
See astro-theme-pure on npm.
Warning
Astro 6.0+ requires Node.js 22.12.0 or newer. Odd-numbered Node.js versions such as 23 are not supported by Astro.
You can choose one of the following methods for project development:
For deployment methods using container like Docker & Docker Compose, please refer the documention Using Docker Compose.
-
Clone the repository and enter the directory:
git clone https://github.com/cworld1/astro-theme-pure.git cd astro-theme-pureEdit
src/site.config.tsto customize the site. -
Install dependencies:
bun install
-
Start the development server:
bun dev # or pnpm dev # or yarn run dev # or npm run dev
The development server runs at http://localhost:4321 by default.
After setting up either development environment, you can create a new blog article:
bun pure newBuild the production site into the ./dist directory:
bun run buildOnce the build is complete, the generated static files will be located in the ./dist directory. You can deploy this directory to any platform that supports static site hosting.
Preview the production build locally:
bun previewYou can deploy your blog to any static site hosting platform.
- Refer to the official Astro Deployment Guide for specific deployment methods.
- Depending on the deployment platform you choose, you may need to modify the
astro.config.tsconfiguration file in the project.
| Vercel | Netlify |
|---|---|
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.
Other third party references are on Docs#Contributions. Appreciate for all open source libraries.
This project is licensed under the Apache 2.0 License.


