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    

excerpt

{{excerpt}} Helper - Create a preview of your post content

Usage: {{excerpt}}

Type
Parameters
Attributes

n/a

  • words (number) [defaults to 50 words]
  • characters (number)

Description

{{excerpt}} outputs content but strips all HTML. This is useful for creating excerpts of posts.

If the post's custom_excerpt property is set, then the helper will always output the custom_excerpt content ignoring the words & characters attributes.

You can limit the amount of text to output by passing one of the options:

{{excerpt characters="140"}} will output 140 characters of text (rounding to the end of the current word).

excerpt

{{excerpt}} Helper - Create a preview of your post content