mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 04:08:21 -04:00
Fix example in merge.md
This commit is contained in:
parent
f275ab778b
commit
edcf5e3fc5
@ -20,8 +20,8 @@ Key handling is case-insensitive.
|
|||||||
An example merging two maps.
|
An example merging two maps.
|
||||||
|
|
||||||
```go-html-template
|
```go-html-template
|
||||||
{{ $default_params := dict "color" "blue" "width" "50%" "height" "25%" }}
|
{{ $default_params := dict "color" "blue" "width" "50%" "height" "25%" "icon" "star" }}
|
||||||
{{ $user_params := dict "color" "red" "extra" (dict "duration" 2) }}
|
{{ $user_params := dict "color" "red" "icon" "mail" "extra" (dict "duration" 2) }}
|
||||||
{{ $params := merge $default_params $user_params }}
|
{{ $params := merge $default_params $user_params }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user