Partial: Update variable name in example

This commit is contained in:
Regis Philibert 2019-04-17 17:47:44 -04:00 committed by GitHub
parent 7d7b1f03c1
commit 7b207a404d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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