diff --git a/content/en/templates/partials.md b/content/en/templates/partials.md index bf183d8b8..e0e32fec5 100644 --- a/content/en/templates/partials.md +++ b/content/en/templates/partials.md @@ -96,14 +96,14 @@ In addition to outputting markup, partials can be used to return a value of any #### Example GetImage ```go-html-template {{/* layouts/partials/GetImage.html */}} -{{ $return := false }} +{{ $image := false }} {{ with .Params.gallery }} - {{ $return = index . 0 }} + {{ $image = index . 0 }} {{ end }} {{ with .Params.image }} - {{ $return = . }} + {{ $image = . }} {{ end }} -{{ return $return }} +{{ return $image }} ``` ```go-html-template