Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
An Astro v6 blog theme inspired by hexo-theme-butterfly, with bilingual support, Pagefind search, PWA, and Waline comments.
Astrofly is an open-source Astro v6 blog theme inspired by hexo-theme-butterfly and HsuBlog, designed to generate fast static sites with bilingual routing, full-text search, offline PWA support, and integrated comments.
Astrofly is a blog theme built on Astro v6 that transforms Markdown content into a static, deployable website. The theme accepts content from a content directory (initially provided as example_content) and outputs a production-ready static site to dist/ when you run npm run build. It is developed by mocusez and draws design inspiration from hexo-theme-butterfly and HsuBlog.
Astrofly follows Astro's standard workflow. Clone the repository, install dependencies with pnpm install, then run pnpm approve-builds to approve native builds. Move the example_content directory to content to start with sample posts. Use npm run dev for local development, npm run build to generate the static site, and npm run newpage to scaffold a new post from a template. The npm run sync command publishes the site via a system script.
Clone the GitHub repository with git clone https://github.com/mocusez/astro-astrofly.git, install dependencies with pnpm install, run pnpm approve-builds, and move example_content to content. You can also scaffold a new project with pnpm create astro@latest -- --template mocusez/astro-astrofly.
Yes. Astrofly has built-in bilingual support for Chinese (zh-CN) and English, with language-specific routing so each locale gets its own URLs.
Astrofly integrates Waline, a comment system that includes pageview counting and dark mode support.
It uses Pagefind, a static search library that indexes your content at build time, providing fast full-text search with multilingual support and mobile optimization.
Astrofly is an open-source theme hosted on GitHub with no mention of licensing costs, so it is free to use and modify.
