Working with a specific static site generator?
Customize CloudCannon's documentation to suit your SSG.
Great! We'll show you documentation relevant to .
You can change this any time using the dropdown in the navigation bar.
These inputs are for editing true/false values in your data.
Checkbox input for values that can be toggled.
Checkbox inputs are shown for inputs configured with the type checkbox
, or for the inputs values true
and false
.
featured: true
_inputs:
featured:
type: checkbox
{
"featured": true,
"_inputs": {
"featured": {
"type": "checkbox"
}
}
}
featured = true
[_inputs.featured]
type = "checkbox"
Switch input for values that can be toggled.
Switch inputs are shown for inputs configured with the type switch
.
featured: true
_inputs:
featured:
type: switch
{
"featured": true,
"_inputs": {
"featured": {
"type": "switch"
}
}
}
featured = true
[_inputs.featured]
type = "switch"
Documented below are the valid formats for checkbox and switch inputs.
The lists of examples are non-exhaustive.
Empty/null value:
Boolean values (without any quotation marks):
is_true: true
is_true: false
Boolean values (without any quotation marks):
is_true = true
is_true = false
Null value:
Boolean values (without any quotation marks):
"is_true": true
"is_true": false