squirrel/layouts/partials/video.html

19 lines
533 B
HTML
Raw Permalink Normal View History

{{- $video := .video }}
{{- $odd := .odd }}
2022-06-27 14:09:44 +00:00
{{- $id := "video"}}
{{if $video.id}}
{{- $id = $video.id}}
2022-06-27 14:09:44 +00:00
{{else if .id}}
{{- $id = .id }}
2022-06-27 14:09:44 +00:00
{{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>