No description
  • CSS 45%
  • Handlebars 36.5%
  • JavaScript 12.4%
  • HTML 6.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
John Sturgeon ce6c019e3c Add inline ...more link to All Posts excerpts
Replaces webkit-line-clamp truncation with nowrap/clip approach and appends
a pink accent-colored "...more" span inline after each truncated excerpt.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-27 17:20:17 +01:00
assets Update theme asset builds (#1031) 2026-03-09 16:09:10 -04:00
code-injection Fix comments iframe: patch signup button and replace member text via parent polling 2026-03-27 15:49:18 +01:00
locales 🌐 Ship uk fr tr translations (#1035) 2026-03-17 10:09:44 -04:00
partials Redesign home feed cards and add post prev/next navigation 2026-03-23 17:27:56 +01:00
.gitignore Hide signup button in comments iframe, fix iframe patch to cover all Ghost iframes 2026-03-27 15:20:31 +01:00
author.hbs Added support for additional social links (#991) 2025-04-17 12:22:35 +01:00
CLAUDE.md Update CLAUDE.md with full project summary and completed customisations 2026-03-27 17:10:29 +01:00
default.hbs 🌐 Enable theme translations for Casper (#1028) 2026-03-06 12:58:32 -05:00
error-404.hbs 🌐 Enable theme translations for Casper (#1028) 2026-03-06 12:58:32 -05:00
error.hbs 🌐 Enable theme translations for Casper (#1028) 2026-03-06 12:58:32 -05:00
gulpfile.js fix Casper's postship (#1033) 2026-03-09 17:46:11 -04:00
index.hbs Added regular pagination option 2022-12-08 12:50:24 +08:00
LICENSE 2026 2026-01-21 13:18:45 +00:00
package.json 🌐 Ship uk fr tr translations (#1035) 2026-03-17 10:09:44 -04:00
page-all-posts.hbs Add inline ...more link to All Posts excerpts 2026-03-27 17:20:17 +01:00
page-join.hbs Fix post-signup redirect to welcome page 2026-03-27 13:42:47 +01:00
page-welcome.hbs Add welcome page and redirect new signups there after verification 2026-03-27 13:13:36 +01:00
page.hbs Updated hiding page title and feature image implementation (#946) 2023-07-17 20:31:26 +08:00
post.hbs Fix prev/next nav: spacer for NEXT-only alignment, less aggressive mobile stacking 2026-03-23 18:51:49 +01:00
README.md Update translation contribution guidelines (#1027) 2026-03-05 12:29:25 -05:00
tag.hbs 🌐 Enable theme translations for Casper (#1028) 2026-03-06 12:58:32 -05:00
yarn.lock 🌐 Ship uk fr tr translations (#1035) 2026-03-17 10:09:44 -04:00

Casper

A classic theme for Ghost, originally the default theme. These days, our default theme is Source

This is the latest development version of Casper! If you're just looking to download the latest release, head over to the releases page.

 

screenshot-desktop

 

First time using a Ghost theme?

Ghost uses a simple templating language called Handlebars for its themes.

This theme has lots of code comments to help explain what's going on just by reading the code. Once you feel comfortable with how everything works, we also have full theme API documentation which explains every possible Handlebars helper and template.

The main files are:

  • default.hbs - The parent template file, which includes your global header/footer
  • index.hbs - The main template to generate a list of posts, usually the home page
  • post.hbs - The template used to render individual posts
  • page.hbs - Used for individual pages
  • tag.hbs - Used for tag archives, eg. "all posts tagged with news"
  • author.hbs - Used for author archives, eg. "all posts written by Jamie"

One neat trick is that you can also create custom one-off templates by adding the slug of a page to a template file. For example:

  • page-about.hbs - Custom template for an /about/ page
  • tag-news.hbs - Custom template for /tag/news/ archive
  • author-ali.hbs - Custom template for /author/ali/ archive

Development

Casper styles are compiled using Gulp/PostCSS to polyfill future CSS spec. You'll need Node, Yarn and Gulp installed globally. After that, from the theme's root directory:

# install dependencies
yarn install

# run development server
yarn dev

Now you can edit /assets/css/ files, which will be compiled to /assets/built/ automatically.

The zip Gulp task packages the theme files into dist/<theme-name>.zip, which you can then upload to your site.

# create .zip file
yarn zip

PostCSS Features Used

  • Autoprefixer - Don't worry about writing browser prefixes of any kind, it's all done automatically with support for the latest 2 major versions of every browser.
  • Color Mod

SVG Icons

Casper uses inline SVG icons, included via Handlebars partials. You can find all icons inside /partials/icons. To use an icon just include the name of the relevant file, eg. To include the SVG icon in /partials/icons/rss.hbs - use {{> "icons/rss"}}.

You can add your own SVG icons in the same manner.

Translations

Please see @TryGhost/Themes/theme-translations/README.md for how to build, edit, or contribute translations.

Copyright & License

Copyright (c) 2013-2026 Ghost Foundation - Released under the MIT license.