Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Gatsby v2 blog starter that ports Ghost's Casper theme into modular components with SEO, pagination, and analytics.
Gatsby Casper Starter is a blog boilerplate for Gatsby v2 that ports the Ghost Casper v1.4 theme into modular React components, letting you publish a static Markdown-based blog with built-in SEO, pagination, and analytics.
Gatsby Casper Starter is a blog starter for Gatsby v2 that reimplements the popular Casper v1.4 theme originally authored by Ghost.io. It takes Markdown posts with optional YAML frontmatter from a configurable content directory and outputs a fully static site with pre-rendered HTML, automatic JS chunk loading, offline support, and a Web App Manifest. The project is maintained by haysclark, with the v2 upgrade largely contributed by hnspn and GatsbyCentral, and it is based on Vagr9K's Gatsby Advanced Starter. The original single Casper CSS file was carefully extracted into individual styled components.
After installing with gatsby new YourProjectName https://github.com/haysclark/gatsby-starter-casper, you run gatsby develop to preview locally. All site configuration lives in the export object in data/SiteConfig.js, where you set your site title, URL, social links, pagination limit, theme colors, and Google Analytics ID. Posts are written as Markdown files inside the configured blogPostDir (default sample-posts), and authors are defined as JSON files in the authors folder; the default author ID is set with blogAuthorId.
Gatsby Casper Starter is free and open source under the MIT license.
Run gatsby new YourProjectName https://github.com/haysclark/gatsby-starter-casper from the CLI, then gatsby develop. Alternatively, clone the GitHub repo, remove the .git folder, run npm install, and start developing.
Posts are authored in Markdown with optional YAML frontmatter. Each post lives in its own folder inside the configured blogPostDir, and media files can be placed alongside the Markdown file. Authors are stored as JSON files in an authors folder.
Yes, Disqus support is included but disabled by default. You need to uncomment the Disqus code in the template and supply your Disqus shortname; the README also mentions notifications for new comments.
Yes. The project includes npm scripts for GitHub Pages deployment, and the configuration supports a pathPrefix for projects hosted under a subdirectory like example.github.io/project-name.
Yes, the starter is released under the MIT license, so it's free to use, modify, and redistribute.
