Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
546 B
HTML
Raw Permalink Normal View History

{{ $src := .Get "src" }}
{{ $title := default "" (.Get "title") }}
{{ $controls := default true (eq (.Get "controls") "true") }}
{{ $autoplay := default false (eq (.Get "autoplay") "true") }}
{{ $loop := default false (eq (.Get "loop") "true") }}
<div class="my-4">
<video class="flex outline-none rounded w-full" title="{{ $title }}"
{{ if $controls }} controls {{ end }}
{{ if $autoplay }} autoplay muted playsinline {{ end }}
{{ if $loop }} loop {{ end }}>
<source src="{{ $src }}" />
</video>
</div>