The Ghost Themes Developer Hub

Welcome to the Ghost Themes developer hub. You'll find comprehensive guides and documentation to help you start working with Ghost Themes as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

ghost_head

{{ghost_head}} Helper - Output scripts and meta data in the head of all HTML pages

Usage: {{ghost_head}}

Types
Parameters
Attributes

n/a

n/a

Description

{{ghost_head}} – belongs just before the </head> tag in default.hbs, outputs the following:

  • Any code entered in Ghost admin via Code Injection
  • Any code entered in a post via PSM - Excerpt
  • Meta description
  • Structured data Shema.org microformats in JSON/LD - no need to clutter your theme markup!
  • Structured data tags for Facebook Open Graph and Twitter Cards.
  • RSS url paths to make your feeds easily discoverable by external readers.
  • Scripts to enable the Ghost API (if enabled in labs)
  • Canonical link to equivalent amp post (if enabled in apps)

ghost_head

{{ghost_head}} Helper - Output scripts and meta data in the head of all HTML pages