Description
Return the value parameter if the input is either null or empty.
Syntax
{{ <object> | default: <value> }}
Example
{{ params.author | default: 'John Doe' }}
displays (if the value of params.author is null)
John Doe
Return the value parameter if the input is either null or empty.
{{ <object> | default: <value> }}
{{ params.author | default: 'John Doe' }}
displays (if the value of params.author is null)
John Doe