A simple, fast and powerful blog theme built by Astro.
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.(除非你只是来帮忙做测试,请不要在任何生产环境中使用非稳定版本!)
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, Tailwind CSS is required.
- Basic components:
Aside
,Tabs
,Timeline
,Steps
,Spoiler
... - Advanced components:
GithubCard
,LinkPreview
,Quote
,QRCode
...
See astro-theme-pure on npm.
Environment requirements:
- Nodejs: 18.0.0+
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
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.
This project is licensed under the Apache 2.0 License.