Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Astro port of Ghost's Casper 2.0 theme with Algolia search, Decap CMS, and fully static output.
Casper Astro is a static blog template that ports Ghost's default Casper 2.0 theme to Astro 7, generating a fully pre-rendered HTML blog with type-safe content validation, built-in Algolia search, and a Decap CMS admin dashboard.
Casper Astro is a modernized, high-performance port of Ghost's default Casper 2.0 theme, built on Astro 7 and TypeScript. It takes Markdown posts and JSON author and tag files as input, validates them with Astro Content Collections and Zod schemas, and outputs a fully static blog with pre-rendered HTML, Atom XML feeds, and Schema.org structured data. The template is maintained by Antony Leons on GitHub and released under the MIT License, the same license as the original Ghost theme.
Casper Astro packages a focused set of features that cover the entire publishing pipeline, from content authoring to deployment.
Four user groups get the most value from Casper Astro, each using the template in a different way.
The template supports several concrete use cases, all built on its static output and CMS integration.
Fork or use the template from GitHub, install dependencies with pnpm or npm, and run the dev server for local editing. Write posts as Markdown files in src/content/posts/, define authors and tags as JSON in their respective content folders, and configure site settings and Algolia credentials in src/config.ts. The template ships with three layout files — Layout.astro for standard pages, PostLayout.astro for articles with progress bars and Disqus lazy-loading, and PageLayout.astro for static pages like /about/ — plus components such as SiteNav.astro, AlgoliaSearch.astro, PostCard.astro, and FloatingHeader.astro. A build command compiles everything into a dist/ directory of static HTML you can host anywhere.
Casper Astro is free to use, with no paid tiers or hidden fees. It is open source under the MIT License, the same license used by the original Ghost Casper theme.
Two related blog themes are directly comparable to Casper Astro.
Here are answers to common questions about Casper Astro.
Yes, Casper Astro is open source under the MIT License, so it is free to use, modify, and deploy anywhere. You pay nothing for the template itself.
You can deploy to Netlify, Vercel, Cloudflare Pages, or GitHub Pages. Use the one-click deploy buttons for Netlify and Vercel, or set the build command to pnpm build and the publish directory to dist. For GitHub Pages, use the included GitHub Actions workflow and select GitHub Actions as the source.
Create an Algolia index, then add your application ID, index name, and search-only API key to the SITE_CONFIG object in src/config.ts. If that configuration block is removed or undefined, the search icons and widget automatically disable.
Yes, Disqus comments are built in and can be toggled on or off. The template also includes location-aware email newsletter subscription forms.
Posts are Markdown files, while authors and tags are JSON files. All content is validated by Astro Content Collections with Zod schemas, so invalid metadata fails the build rather than appearing on your site.
