2022-04-01 17:50:27 -05:00
|
|
|
{{ $h265 := .Get "h265" }}
|
|
|
|
{{ $h264 := .Get "h264" }}
|
|
|
|
{{ $vp9 := .Get "vp9" }}
|
|
|
|
{{ $vp8 := .Get "vp8" }}
|
|
|
|
{{ $caption := .Get "caption" }}
|
|
|
|
{{ $attr := .Get "attr" }}
|
|
|
|
{{ $attrlink := .Get "attrlink" }}
|
|
|
|
<figure>
|
|
|
|
<video autoplay loop controls style="max-width: 100%;">
|
|
|
|
{{ if $h265 }}
|
2022-04-01 17:54:44 -05:00
|
|
|
<source src='{{ $h265 }}' type="video/mp4" />
|
2022-04-01 17:50:27 -05:00
|
|
|
{{ end }}
|
|
|
|
{{ if $h264 }}
|
2022-04-01 17:54:44 -05:00
|
|
|
<source src='{{ $h264 }}' type="video/mp4" />
|
2022-04-01 17:50:27 -05:00
|
|
|
{{ end }}
|
|
|
|
{{ if $vp9 }}
|
2022-04-01 17:54:44 -05:00
|
|
|
<source src='{{ $vp9 }}' type="video/webm" />
|
2022-04-01 17:50:27 -05:00
|
|
|
{{ end }}
|
|
|
|
{{ if $vp8 }}
|
2022-04-01 17:54:44 -05:00
|
|
|
<source src='{{ $vp8 }}' type="video/webm" />
|
2022-04-01 17:50:27 -05:00
|
|
|
{{ end }}
|
|
|
|
</video>
|
|
|
|
{{ if or $caption $attr }}
|
|
|
|
<figcaption>
|
|
|
|
{{ if $caption }}
|
|
|
|
<p>{{ . }}</p>
|
|
|
|
{{ end }}
|
|
|
|
<p>
|
|
|
|
{{ if $attrlink }}<a href="{{ $attrlink }}">{{ end }}{{ $attr }}{{ if $attrlink }}</a>{{ end }}
|
|
|
|
</p>
|
|
|
|
</figcaption>
|
|
|
|
{{ end }}
|
|
|
|
</figure>
|