mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-23 10:21:46 +01:00
14 lines
406 B
HTML
14 lines
406 B
HTML
{{- $src := .Get "src" | default (.Get 0) -}}
|
|
<div class="video-wrapper">
|
|
<video
|
|
controls
|
|
src="{{- $src -}}"
|
|
{{ with .Get "poster" }}poster="{{- . -}}"{{ end }}
|
|
{{ with .Get "autoplay" }}autoplay{{ end }}
|
|
>
|
|
<p>
|
|
Your browser doesn't support HTML5 video. Here is a
|
|
<a href="{{- $src -}}">link to the video</a> instead.
|
|
</p>
|
|
</video>
|
|
</div>
|