CHANGE section design to be more dynamic
This commit is contained in:
parent
6032aebe80
commit
7239b2c45e
14 changed files with 90 additions and 83 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue