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