Creator — Building a Ghost Theme (Work Log)

Back to project

Building Creator, a free open-source multipurpose Ghost theme — documented step by step, in the open.

Build log 09 Jul 2026 1 min read

Part 9 — Understanding contexts and the {{#is}} helper

Context is how Ghost knows what kind of page is rendering — and it's the key to reusable templates.

The {{#is}} helper

{{#is "home"}}…homepage only…{{/is}}
{{#is "post, page"}}…single view…{{/is}}
{{#is "tag, author"}}…archive…{{/is}}

Why it matters

One shared header partial can adapt per context instead of duplicating markup across templates.

Common contexts

  • home, post, page
  • tag, author, paged
This finally made the template hierarchy click — Ghost isn't magic, it's context + naming conventions.

Advertisement