Update related.md

This commit is contained in:
Pierpaolo Calanna 2023-11-01 10:45:11 +01:00 committed by Bjørn Erik Pedersen
parent 7e758c23b3
commit db0f1e682d

View File

@ -48,7 +48,7 @@ A fictional example using all of the above options:
```go-html-template
{{ $page := . }}
{{ $opts :=
{{ $opts := dict
"indices" (slice "tags" "keywords")
"document" $page
"namedSlices" (slice (keyVals "tags" "hugo" "rocks") (keyVals "date" $page.Date))