mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 12:16:55 +00:00
1 parent
7297c11727
commit
58029627df
1 file changed
+1
-1
@@ -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