mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-28 01:08:52 +00:00
committed by
Bjørn Erik Pedersen
parent
7297c11727
commit
58029627df
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user