mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
docs: add better default example
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
ce9ee3cf49
commit
0743646f32
@@ -36,7 +36,7 @@ non-nil for any other types.
|
||||
|
||||
e.g.
|
||||
|
||||
{{ .Params.font | default "Roboto" }} → default is "Roboto"
|
||||
{{ index .Params "font" | default "Roboto" }} → default is "Roboto"
|
||||
{{ default "Roboto" .Params.font }} → default is "Roboto"
|
||||
|
||||
### delimit
|
||||
|
Reference in New Issue
Block a user