added types to video shortcode
This commit is contained in:
parent
f0aadb0370
commit
a5e5a57aec
|
@ -8,16 +8,16 @@
|
|||
<figure>
|
||||
<video autoplay loop controls style="max-width: 100%;">
|
||||
{{ if $h265 }}
|
||||
<source src='{{ $h265 }}' />
|
||||
<source src='{{ $h265 }}' type="video/mp4" />
|
||||
{{ end }}
|
||||
{{ if $h264 }}
|
||||
<source src='{{ $h264 }}' />
|
||||
<source src='{{ $h264 }}' type="video/mp4" />
|
||||
{{ end }}
|
||||
{{ if $vp9 }}
|
||||
<source src='{{ $vp9 }}' />
|
||||
<source src='{{ $vp9 }}' type="video/webm" />
|
||||
{{ end }}
|
||||
{{ if $vp8 }}
|
||||
<source src='{{ $vp8 }}' />
|
||||
<source src='{{ $vp8 }}' type="video/webm" />
|
||||
{{ end }}
|
||||
</video>
|
||||
{{ if or $caption $attr }}
|
||||
|
|
Loading…
Reference in New Issue