Developer docs

@labs

The @labs variable provides access to global data properties, which are available anywhere in your theme.

For each feature listed with a checkbox in the settings/labs/ section of a site, the @labs global will provide a boolean flag which tells the theme developer whether or not the feature is enabled.

As of Ghost 4.0.0, there are no new features which can be detected.

In Ghost 3.x, the following properties were available:

  • {{@labs.members}} – true if the Members feature is enabled (disabled by default)

Members

From Ghost 4.0.0 membership features are enabled by default and are no longer a Labs setting. The existing {{@labs.members}} flag will return true by default, and false if the Subscription access setting is set to Nobody.