added types to video shortcode

This commit is contained in:
Gabriele Musco 2022-04-02 00:54:44 +02:00
parent f0aadb0370
commit a5e5a57aec
No known key found for this signature in database
GPG Key ID: 0587A5D65B5DC99E
1 changed files with 4 additions and 4 deletions

View File

@ -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 }}