mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
tpl: Add time note to default func description
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
09c8c17bf0
commit
f3f9763afd
@@ -30,9 +30,9 @@ and other basic tools; these are listed in the
|
||||
|
||||
### default
|
||||
Checks whether a given value is set and returns a default value if it is not.
|
||||
"Set" in this context means true for booleans; non-zero for numeric types;
|
||||
non-zero length for strings, arrays, slices, and maps; any struct value; or
|
||||
non-nil for any other types.
|
||||
"Set" in this context means true for booleans; non-zero for numeric types and
|
||||
times; non-zero length for strings, arrays, slices, and maps; any struct value;
|
||||
or non-nil for any other types.
|
||||
|
||||
e.g.
|
||||
|
||||
|
Reference in New Issue
Block a user