Utility helpers are used to perform minor, optional tasks. Use this reference list to discover what each handlebars helper can do when building a custom Ghost theme.
Tag | Description |
---|---|
asset | Outputs cachable and cache-busting relative URLs to various asset types |
block | Used along with {{contentFor}} to pass data up and down the template hierarchy |
body_class | Outputs dynamic CSS classes intended for the <body> tag |
concat | Concatenate and link multiple things together |
encode | Encode text to be safely used in a URL |
ghost_head / ghost_foot | Outputs vital system information at the top and bottom of the document |
link_class | Add dynamic classes depending on the currently viewed page |
log | In development mode, output data in the console |
pagination | Helper which outputs formatted HTML for pagination links |
partials | Include chunks of reusable template code |
plural | Output different text based on a given input |
post_class | Outputs classes intended for your post container |
prev_post / next_post | Within the post scope, returns the URL to the previous or next post |
reading_time | Renders the estimated reading time for a post |
search | Output a working, pre-styled search button & icon |
translate | Output text in your site language (the backbone of i18n) |