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