Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A simple, lightweight content-focused blog theme for Astro with dark mode, i18n, comments, and search.
Astro Yi is a content-focused Astro blog theme from developer cirry, built to turn markdown files into a fast, static personal blog with comments, search, and internationalization. It is an open-source project hosted on GitHub, and it can be deployed to Vercel, GitHub Pages, or any static web server.
Astro Yi is an open-source blog theme created by developer cirry for the Astro static site generator. It takes markdown files placed in the src/content/blog and src/content/feed directories as input and builds them into a static blog with pages for homepage, blog listing, feed, archive, message board, search, about, and friends links. The theme is configured through a single TypeScript file at src/consts.ts, and it is designed to be fast and concise — the name Yi means "fast and concise" in Chinese. The project's repository lists 153 stars and two topics, astro and blog.
src/consts.ts.type field.lang setting in the config file.slug, MathJax formulas, Mermaid diagrams, and expressive code blocks with folding after 16 lines.src/content/blog and short feed updates in src/content/feed, each with its own frontmatter rules and page size settings.beian field for Chinese ICP filing.title and date in the frontmatter and place it in src/content/blog — the theme handles listing, pagination, and archiving automatically.src/content/feed with just a date to share quick links or thoughts, optionally with a Memos integration.pnpm build and upload the generated dist folder to any server.The theme follows Astro's content collection workflow. You create markdown files with YAML frontmatter, and Astro's build process compiles them into static HTML. Global settings are read from src/consts.ts, while astro.config.js must have the site property set so the sitemap is generated correctly; the readme also recommends adding the sitemap location to robots.txt.
Astro Yi is free to use and its source is public on GitHub. Costs are limited to hosting, a domain, and optional third-party services you choose such as a Waline server or a comment database.
Yes, the theme's code is publicly available on GitHub and can be cloned and used without a license fee. You pay only for your hosting and any external services you enable, such as a Waline server or analytics.
Each blog post supports title, date, description, tags, category, sticky (pin weight), slug (permanent link), mathjax, mermaid, draft, toc, donate, comment, and ogImage cover image. Only title and date are required for a minimal post.
The theme supports both Waline and Giscus. Waline uses a self-hosted server URL and offers pageview counts, emoji reactions, and word limits. Giscus connects to a GitHub Discussions category using repository, category ID, and standard Giscus mapping settings.
Yes, GitHub Pages support is a listed feature. You set the site URL and repository name in the baseUrl field inside src/consts.ts, then upload the built dist folder to your GitHub Pages branch. The readme also shows how to set two extra values: url and baseUrl.
