Each page in a Ghost theme belongs to a context, which determines which template is used, what data will be available and what content is output by the {{body_class}}
helper.
{{meta_title}}
helper outputs different things based on the current context. If the context is post
then the helper knows it can use post.meta_title
and in a tag
context it uses tag.meta_title
.
To detect a context in your theme, use the {{#is}}
helper. For example, in a partial template that is shared between many contexts, using {{#is}}
passes it a context and only executes the contained block when it is in that context.