No description
  • JavaScript 63.9%
  • CSS 23.1%
  • Handlebars 11.8%
  • Shell 1%
  • Nix 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Renovate Bot 401fcbd2c7
All checks were successful
ci/woodpecker/push/main Pipeline was successful
Lock file maintenance (#393)
2026-12-01 16:11:51 -05:00
.woodpecker Add devenv (#384) 2026-11-07 09:59:37 -05:00
assets Update dependency stylelint-config-standard to v41 (#383) 2026-11-07 10:31:32 -05:00
partials remove extra slash (#260) 2026-01-06 14:09:42 +00:00
.browserslistrc Update dependency stylelint-config-standard to v34 (#123) 2023-08-07 11:37:04 -04:00
.gitignore Add devenv (#384) 2026-11-07 09:59:37 -05:00
.npmrc bulk update deps to fix conflicts (#50) 2021-12-19 11:38:55 -05:00
.prettierrc.json Fix node rate limiting (#16) 2023-10-30 09:55:48 -04:00
.stylelintignore Cb/bugfixing (#5) 2021-03-27 12:14:42 -04:00
.stylelintrc.json Lock file maintenance (#149) 2024-09-17 10:38:04 -04:00
author.hbs initial rewrite (#2) 2021-03-26 16:02:50 -04:00
default.hbs initial rewrite (#2) 2021-03-26 16:02:50 -04:00
devenv.lock Add devenv (#384) 2026-11-07 09:59:37 -05:00
devenv.nix Add devenv (#384) 2026-11-07 09:59:37 -05:00
devenv.yaml Add devenv (#384) 2026-11-07 09:59:37 -05:00
error.hbs 🚨 Fixed GScan error 2020-01-09 14:13:34 +07:00
gulpfile.js Lock file maintenance (#149) 2024-09-17 10:38:04 -04:00
index.hbs initial rewrite (#2) 2021-03-26 16:02:50 -04:00
LICENSE 2021 2021-01-25 17:01:40 +00:00
package-lock.json Lock file maintenance (#393) 2026-12-01 16:11:51 -05:00
package.json Update dependency stylelint-order to v9 (#389) 2026-11-28 09:52:32 -05:00
page.hbs Cb/bugfixing (#5) 2021-03-27 12:14:42 -04:00
post.hbs cb/add-webmentions (#21) 2023-11-07 11:03:54 -05:00
README.md Lock file maintenance (#149) 2024-09-17 10:38:04 -04:00
renovate.json Lock file maintenance (#149) 2024-09-17 10:38:04 -04:00
tag.hbs initial rewrite (#2) 2021-03-26 16:02:50 -04:00

London

A custom, image-centric theme for Ghost. Made for publishers and portfolios with plenty of graphics to show off to the world. Completely free and fully responsive, released under the MIT license.

Demo: https://london.ghost.io

 

london

 

First time using a Ghost theme?

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

We've documented our default theme pretty heavily so that it should be fairly easy to work out what's going on just by reading the code and the comments. 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 main template file
  • index.hbs - Used for the home page
  • post.hbs - Used for individual posts
  • page.hbs - Used for individual pages
  • tag.hbs - Used for tag archives
  • author.hbs - Used for author archives

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

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

Development

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

$ npm run install
$ npm run 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.

$ npm run 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.
  • Variables - Simple pure CSS variables
  • Color Function

Copyright & License

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