{{#checkIfNone}} helper

Block helper which renders its content when none of the arguments has a value. It is the opposite of the #checkIfAny helper. Use it for fallback content, for example a message when a post has neither an author nor tags.

Syntax:

{{#checkIfNone ARG_1 ARG_2 ARG_3 ... ARG_N}}
Code displayed when above condition is true
{{else}}
Code displayed when above condition is false
{{/checkIfNone}}

Example:

{{#checkIfNone author tags}}
Block displayed when author data and tags data are empty
{{/checkIfNone}}

Create your first website with Publii

Join thousands of creators who chose independence. Create content locally and publish lightning-fast, secure websites on your own terms.

Download Publii

Free and open source. Windows, macOS and Linux.

Read the getting started guide