aboutsummaryrefslogtreecommitdiffhomepage
path: root/commands
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-01-31 12:34:28 +0100
committerBjørn Erik Pedersen <[email protected]>2024-01-31 12:34:28 +0100
commit51615440bf9a932004bca2b69e5805b1ec48427f (patch)
tree72ee44aa7b7621ddf0452c41b24d8b754119dec5 /commands
parentbd66d30295e5454bb076d3108a89f6c3ad9bcde8 (diff)
downloadhugo-51615440bf9a932004bca2b69e5805b1ec48427f.tar.gz
hugo-51615440bf9a932004bca2b69e5805b1ec48427f.zip
docs: Make null booleans falsy in the docs helper
Diffstat (limited to 'commands')
-rw-r--r--commands/gen.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/gen.go b/commands/gen.go
index 11c32d778..ae87091c4 100644
--- a/commands/gen.go
+++ b/commands/gen.go
@@ -195,7 +195,7 @@ url: %s
configProvider := func() docshelper.DocProvider {
conf := hugolib.DefaultConfig()
conf.CacheDir = "" // The default value does not make sense in the docs.
- defaultConfig := parser.LowerCaseCamelJSONMarshaller{Value: conf}
+ defaultConfig := parser.NullBoolJSONMarshaller{Wrapped: parser.LowerCaseCamelJSONMarshaller{Value: conf}}
return docshelper.DocProvider{"config": defaultConfig}
}