Fix erroneous example code piping to if

Fixes #1192
This commit is contained in:
Joe Mooring
2020-08-22 20:21:28 -04:00
committed by Bjørn Erik Pedersen
parent 7297c11727
commit 58029627df
+1 -1
View File
@@ -95,7 +95,7 @@ For the second position, you would just use:
most helpful when the condition depends on either of the values, or both:
```
{{ or .Get "title" | .Get "alt" | if }} alt="{{ with .Get "alt"}}{{.}}{{else}}{{.Get "title"}}{{end}}"{{ end }}
{{ if or (.Get "title") (.Get "alt") }} alt="{{ with .Get "alt"}}{{.}}{{else}}{{.Get "title"}}{{end}}"{{ end }}
```
#### `.Inner`