diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-01-31 12:34:28 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-01-31 12:34:28 +0100 |
commit | 51615440bf9a932004bca2b69e5805b1ec48427f (patch) | |
tree | 72ee44aa7b7621ddf0452c41b24d8b754119dec5 /commands | |
parent | bd66d30295e5454bb076d3108a89f6c3ad9bcde8 (diff) | |
download | hugo-51615440bf9a932004bca2b69e5805b1ec48427f.tar.gz hugo-51615440bf9a932004bca2b69e5805b1ec48427f.zip |
docs: Make null booleans falsy in the docs helper
Diffstat (limited to 'commands')
-rw-r--r-- | commands/gen.go | 2 |
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} } |