Inspire by the hexo-theme-butterfly and HsuBlog
- Astro v6 — Built on the latest Astro for fast, static-first performance
- Bilingual Support — Chinese (zh-CN) and English content with language-specific routing
- Full-Text Search — Lightning-fast static search powered by Pagefind, with multilingual support and mobile optimization
- PWA Support — Installable as a Progressive Web App with offline access, auto cache versioning on build
- Waline Comments — Integrated Waline comment system with pageview counting and dark mode support
- Expressive Code — Syntax highlighting powered by Shiki, with custom MLIR/LLVM grammar support
- Tailwind CSS — Utility-first styling with dark/light theme toggle
- Sitemap — Auto-generated sitemap for SEO
- Responsive Design — Mobile-friendly layout with adaptive navigation
- Git
git clone https://github.com/mocusez/astro-astrofly.git blog
cd blog
pnpm install
pnpm approve-builds
mv example_content content # Use example content as your content directory
pnpm create astro@latest -- --template mocusez/astro-astrofly
mv example_content content # Use example content as your content directory
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro -- --help |
Get help using the Astro CLI |
npm run newpage |
Generate new post base on template |
npm run sync |
Publish the site by system script |
