From 7b207a404d2ca67e87dfaedc791fb71ed01aa7a9 Mon Sep 17 00:00:00 2001 From: Regis Philibert Date: Wed, 17 Apr 2019 17:47:44 -0400 Subject: [PATCH] Partial: Update variable name in example --- content/en/templates/partials.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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