No description
  • CSS 44.7%
  • Handlebars 44.5%
  • JavaScript 10.5%
  • Shell 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-01 06:00:30 +00:00
.forgejo Fix corrupted images and fonts in theme zip 2026-11-01 17:06:52 +00:00
.github/workflows Renamed CI gate job to the org-standard "Required checks pass" 2026-07-06 11:22:58 +04:00
assets Fix corrupted images and fonts in theme zip 2026-11-01 17:06:52 +00:00
locales Updated translations package to 0.0.19 (#147) 2026-05-30 14:22:55 -05:00
partials Merge remote-tracking branch 'upstream/main' into quadrad 2026-10-10 06:00:07 +00:00
.gitattributes Update .gitattributes 2026-08-10 17:20:05 +00:00
.gitignore Initial commit 2023-07-05 20:43:09 +08:00
AGENTS.md Switch Source theme from Yarn to pnpm (#164) 2026-06-16 07:59:44 -04:00
author.hbs Added WebP and responsive sizes to cover, feature and author images 2026-10-08 17:00:16 +08:00
CLAUDE.md Added theme CI gate and agent docs 2026-06-15 17:25:29 +04:00
custom-supportus-page.hbs Apply QuadRadEntscheid customizations 2026-08-04 12:56:54 +02:00
default.hbs Fixed unreadable text on dark backgrounds when JavaScript is disabled 2026-10-08 17:23:16 +08:00
gulpfile.js Fix corrupted images and fonts in theme zip 2026-11-01 17:06:52 +00:00
home.hbs Fixed featured posts row showing outside the Magazine header style 2026-10-07 17:04:53 +08:00
index.hbs Various improvements 2023-09-18 17:50:05 +08:00
LICENSE 2026 2026-01-21 13:19:33 +00:00
package.json Merge remote-tracking branch 'upstream/main' into quadrad 2026-12-01 06:00:30 +00:00
page.hbs Bug fixes 2023-08-07 19:58:36 +08:00
pnpm-lock.yaml Update dependency autoprefixer to v10.7.1 (#316) 2026-12-01 02:25:00 +00:00
pnpm-workspace.yaml Update dependency minimatch@>=7 <11.0.1 to v11.0.5 (#301) 2026-11-11 14:55:48 +08:00
post.hbs Exclude related posts from search snippets (#290) 2026-11-02 14:16:00 +08:00
qem-home.hbs Apply QuadRadEntscheid customizations 2026-08-04 12:56:54 +02:00
README.md Updated Source release workflow (#206) 2026-08-19 12:52:24 +00:00
renovate.json disable renovate 2026-08-10 20:21:40 +00:00
tag.hbs Various improvements 2023-09-18 17:50:05 +08:00

Source

The default theme for Ghost. This is the latest development version of Source! If you're just looking to download the latest release, head over to the releases page.

 

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
  • home.hbs - The homepage
  • index.hbs - The main template to generate a list of posts
  • 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

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

# install dependencies
pnpm install

# run development server
pnpm 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
pnpm zip

Publishing a release

Releases are shipped from an up-to-date, clean main branch in two steps. Before starting, configure GST_TOKEN with a GitHub token that can create releases in TryGhost/Source.

First bump the version. This updates package.json, then creates a commit and annotated v<version> git tag:

# pick one of: patch | minor | major (or an explicit version, e.g. 1.8.0)
pnpm version minor

Then run ship:

pnpm ship

pnpm ship:

  1. Builds the theme zip and runs GScan.
  2. Refuses to continue if the working tree is not clean after the build.
  3. Pushes the version commit and tag.
  4. Prompts for the minimum compatible Ghost version and creates a draft GitHub release with the generated changelog.

Review and publish the draft GitHub release after the command completes. The pushed theme tag, rather than the GitHub release, is what the next Ghost release uses when updating its bundled Source theme.

Note

pnpm version requires an explicit version or bump type. Run it before pnpm ship; the ship command does not perform the bump itself.

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.

SVG Icons

Source 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.