Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A simple opinionated Astro starter for creating an easy-to-use blog or website.
Astro Cactus is an Astro starter theme for building blogs and simple websites with Markdown and MDX content. It outputs a static, SEO-friendly site with automatic RSS, sitemap, robots.txt, and web app manifest generation.
Astro Cactus is an opinionated starter created by Chris Williams, built on Astro v6. It takes Markdown or MDX files placed in src/content/post and src/content/note and generates a complete blog or website with tag pages and Open Graph images. The theme uses static output by default, so it deploys to Netlify, Vercel, Cloudflare Pages, or any static host without adding an adapter.
src/styles/global.css.src/content/post and src/content/note support .md and .mdx files, including Astro admonitions.ogImage frontmatter property to override.Astro Cactus suits developers who want a fast, minimal blog starter with opinionated defaults. Personal bloggers can publish Markdown posts and notes without touching configuration beyond src/site.config.ts. Technical writers can use MDX for interactive examples and code blocks. Portfolio owners can adapt the blog layout and tag pages to present projects. Anyone needing static search can add Pagefind, which only requires running the included postbuild command.
SocialList.astro and use the tag system to organize projects by category.pnpm build && pnpm postbuild to generate a static Pagefind index that filters posts by tags.The template uses Content Collections with a schema in src/content.config.ts to type-check frontmatter for posts, notes, and tags. You create .md or .mdx files in the post or note folders; the filename becomes the slug. Run pnpm dev for local development, pnpm build to output to ./dist/, and pnpm postbuild to build the Pagefind index. Configuration lives mainly in src/site.config.ts, where you set your domain and choose date locale.
Astro Cactus is inspired by Hexo Theme Cactus, a blog theme for the Hexo static site generator. Unlike Hexo Cactus, Astro Cactus runs on Astro v6 and includes Tailwind CSS, Satori OG images, and Pagefind search out of the box.
Yes, the theme is open source under the MIT license, and you can create a repository from the template via GitHub's "Use this template" feature.
Add a Markdown or MDX file to src/content/post with required frontmatter: title, description (50 to 160 characters), and publishDate in ISO 8601 format. The filename becomes the slug, and tag pages are generated automatically for any tags you add.
Yes, both Markdown and MDX are supported for posts and notes. MDX enables interactive components and Astro's MDX-only features, such as admonitions.
Because the theme uses static output, it works on Netlify and Vercel (with one-click deploy buttons available), plus any static host. Cloudflare Workers requires a Wrangler configuration file for the OG image endpoints, and subdirectory deployments are not supported out of the box.
No analytics provider is bundled. The theme leaves the head tag in Base.astro and BaseHead.astro open so you can add your own snippet from Vercel, Netlify, or Cloudflare Web Analytics.
