2021-08-26 12:50:03 -04:00
|
|
|
{{- $src := .Get "src" | default (.Get 0) -}}
|
2021-07-27 04:42:06 -04:00
|
|
|
<div class="video-wrapper">
|
|
|
|
<video
|
|
|
|
controls
|
2021-08-26 12:50:03 -04:00
|
|
|
src="{{- $src -}}"
|
2021-07-27 04:42:06 -04:00
|
|
|
{{ with .Get "poster" }}poster="{{- . -}}"{{ end }}
|
|
|
|
{{ with .Get "autoplay" }}autoplay{{ end }}
|
|
|
|
>
|
|
|
|
<p>
|
|
|
|
Your browser doesn't support HTML5 video. Here is a
|
2021-08-26 12:50:03 -04:00
|
|
|
<a href="{{- $src -}}">link to the video</a> instead.
|
2021-07-27 04:42:06 -04:00
|
|
|
</p>
|
|
|
|
</video>
|
|
|
|
</div>
|