Conditionals
This commit is contained in:
parent
f6bb19177e
commit
f0bb4e6cdc
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@
|
||||||
<a href='{{.Get "href"}}'>
|
<a href='{{.Get "href"}}'>
|
||||||
{{end}}
|
{{end}}
|
||||||
<video autoplay muted loop preload="true">
|
<video autoplay muted loop preload="true">
|
||||||
<source src='{{.Site.BaseURL}}{{.Get "src" }}'>
|
{{if .Get 0}}<source src='{{.Site.BaseURL}}{{.Get 0 }}'>{{end}}
|
||||||
<source src='{{.Site.BaseURL}}{{.Get 0 }}'>
|
{{if .Get "src"}}<source src='{{.Site.BaseURL}}{{.Get "src" }}'>{{end}}
|
||||||
</video>
|
</video>
|
||||||
{{ if .Get "href"}}
|
{{ if .Get "href"}}
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue