How the date helper works in Ghost
The {{date}} helper formats dates in a Ghost theme, from "Apr 7, 2024" to "2 days ago": its options, format tokens and examples to copy.
HelpersCelebrating our new site: 30% off everything with code , until Dec 1.
The Handlebars helpers Ghost themes use, from dates and prices to match, block and filters, with examples.
The {{date}} helper formats dates in a Ghost theme, from "Apr 7, 2024" to "2 days ago": its options, format tokens and examples to copy.
Helpers{{{block}}} leaves a named slot in a Ghost layout, and {{#contentFor}} fills it from a template. Use them to add scripts, classes or meta tags to one kind of page only.
HelpersTemplatesThe {{price}} helper turns a tier or subscription amount into a formatted price, such as $9. Use it to show your membership prices on a custom pricing or account page.
HelpersMembersThe {{#match}} helper compares two values in a Ghost theme and shows a block when the test passes. It is the way to act on custom theme settings, counts and text.
HelpersNumber your posts or newsletter issues in an archive with a CSS counter, counting up or down, without putting the number in every title.
NewslettersHelpersThe {{reading_time}} helper counts 275 words a minute, plus a few seconds per image. Change its wording with the minute and minutes options, and translate it with the t helper.
HelpersGhost filters pick posts, tags or authors by their fields: featured posts, posts with a tag, posts after a date. How the filter syntax works, with examples for themes and routes.yaml.
HelpersFrom a solo newsletter to a busy newsroom, there is a theme that fits. No code needed.