Skip to content
Snippets Groups Projects
Commit c118b2ad authored by Arnaud Levy's avatar Arnaud Levy
Browse files

fix

parent 5116b68e
No related branches found
No related tags found
No related merge requests found
......@@ -20,10 +20,7 @@
<div class="video">
{{ $partial := printf "blocks/templates/video/%s" .video.platform }}
{{ partial $partial ( dict
"context" .
"title" $title
)}}
{{ partial $partial . }}
</div>
{{ end }}
......
{{ $title := .title }}
{{ if .context.video.poster }}
<div class="lazy-video-player">
<button class="lazy-video-player__play" title ="{{- i18n "blocks.video.play" -}}" aria-label="{{- i18n "blocks.video.play" -}}"></button>
<img src="{{ .context.video.poster }}" alt="{{ .context.video_title }}" loading="lazy">
</div>
{{ end }}
<div class="lazy-video-player">
<button class="lazy-video-player__play" title ="{{- i18n "blocks.video.play" -}}" aria-label="{{- i18n "blocks.video.play" -}}"></button>
{{ if .video.poster }}
<img src="{{ .video.poster }}" alt="{{ .video.title }}" loading="lazy">
{{ end }}
</div>
<div class="video-container">
<iframe data-unloaded-src="{{ .context.video.embed_with_defaults }}" title="{{ .context.video_title }}" autoplay="true" allow="autoplay; fullscreen"></iframe>
<iframe data-unloaded-src="{{ .video.embed_with_defaults }}" title="{{ .video.title }}" autoplay="true" allow="autoplay; fullscreen"></iframe>
</div>
\ No newline at end of file
{{ $title := .title }}
<div class="lazy-video-player">
<button class="lazy-video-player__play" title ="{{- i18n "blocks.video.play" -}}" aria-label="{{- i18n "blocks.video.play" -}}"></button>
</div>
<div class="video-container">
<iframe data-unloaded-src="{{ .context.video.embed_with_defaults }}" title="{{ .context.video_title }}" allow="autoplay; fullscreen"></iframe>
<iframe data-unloaded-src="{{ .video.embed_with_defaults }}" title="{{ .video.title }}" allow="autoplay; fullscreen"></iframe>
</div>
\ No newline at end of file
{{ $title := .title }}
{{ if .context.video.poster }}
<div class="lazy-video-player">
<button class="lazy-video-player__play" title ="{{- i18n "blocks.video.play" -}}" aria-label="{{- i18n "blocks.video.play" -}}"></button>
<img src="{{ .context.video.poster }}" alt="{{ .context.video_title }}" loading="lazy">
</div>
{{ end }}
<div class="lazy-video-player">
<button class="lazy-video-player__play" title ="{{- i18n "blocks.video.play" -}}" aria-label="{{- i18n "blocks.video.play" -}}"></button>
{{ if .video.poster }}
<img src="{{ .video.poster }}" alt="{{ .video.title }}" loading="lazy">
{{ end }}
</div>
<div class="video-container">
<iframe data-unloaded-src="{{ .context.video.embed_with_defaults }}" title="{{ .context.video_title }}" allow="autoplay; fullscreen"></iframe>
<iframe data-unloaded-src="{{ .video.embed_with_defaults }}" title="{{ .video.title }}" allow="autoplay; fullscreen"></iframe>
</div>
\ No newline at end of file
{{ $title := .title }}
{{ if .context.video.poster }}
<div class="lazy-video-player">
<button class="lazy-video-player__play" title ="{{- i18n "blocks.video.play" -}}" aria-label="{{- i18n "blocks.video.play" -}}"></button>
<img src="{{ .context.video.poster }}" alt="{{ .context.video_title }}" loading="lazy">
</div>
{{ end }}
<div class="lazy-video-player">
<button class="lazy-video-player__play" title ="{{- i18n "blocks.video.play" -}}" aria-label="{{- i18n "blocks.video.play" -}}"></button>
{{ if .video.poster }}
<img src="{{ .video.poster }}" alt="{{ .video.title }}" loading="lazy">
{{ end }}
</div>
<div class="video-container">
<iframe data-unloaded-src="{{ .context.video.embed_with_defaults }}" title="{{ $title }}" allowfullscreen allow="autoplay"></iframe>
<iframe data-unloaded-src="{{ .video.embed_with_defaults }}" title="{{ video.title }}" allowfullscreen allow="autoplay"></iframe>
</div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment