squirrel/layouts/partials/video.html

19 lines
535 B
HTML
Raw Normal View History

{{- $video := .video }}
{{- $odd := .odd }}
2022-06-27 14:09:44 +00:00
{{- $id := "video"}}
{{if $video.id}}
{{- $id := $video.id}}
{{else if .id}}
{{- $id := .id }}
{{end}}
<div id="{{ $id }}" class="section {{if eq $odd 0}} section-even {{end}}">
2021-02-25 21:23:58 +00:00
<div class="section-content">
<div class="videoWrapper">
{{ if eq $video.video.type "mp4"}}
2021-02-25 21:23:58 +00:00
<video class="video" controls>
<source src="{{ $video.video.url }}" type="video/mp4">
2021-02-25 21:23:58 +00:00
</video>
{{ end }}
</div>
</div>
</div>