CHANGE section design to be more dynamic

This commit is contained in:
Hoernschen 2022-03-19 23:54:55 +01:00
parent 6032aebe80
commit 7239b2c45e
No known key found for this signature in database
GPG key ID: 8B027F540E7DBD58
14 changed files with 90 additions and 83 deletions

View file

@ -1,10 +1,11 @@
{{- $video := .Site.Params.video }}
<div id="video" class="section">
{{- $video := .video }}
{{- $odd := .odd }}
<div id="{{ $video.id }}" class="section {{if eq $odd 0}} section-even {{end}}">
<div class="section-content">
<div class="videoWrapper">
{{ if eq $video.type "mp4"}}
{{ if eq $video.video.type "mp4"}}
<video class="video" controls>
<source src="{{ $video.url }}" type="video/mp4">
<source src="{{ $video.video.url }}" type="video/mp4">
</video>
{{ end }}
</div>