Skip to content
Snippets Groups Projects
Commit 753343c4 authored by Olivia206's avatar Olivia206
Browse files

added dailymotion and vimeo iframes

parent 0ad25422
No related branches found
No related tags found
No related merge requests found
{{ partial "PrepareHTML" .video.iframe }}
\ No newline at end of file
{{ if .video.poster }}
<div class="video-player">
<button class="video-player__play" title ="{{- i18n "blocks.video.play" -}}" aria-label="{{- i18n "blocks.video.play" -}}"></button>
<img src="{{ .video.poster }}" alt="{{ .video_title }}">
</div>
{{ end }}
<div class="video-container">
<iframe data-unloaded-src="{{ .video.embed }}" title="{{ .video_title }}"></iframe>
</div>
\ No newline at end of file
{{ partial "PrepareHTML" .video.iframe }}
\ No newline at end of file
{{ if .video.poster }}
<div class="video-player">
<button class="video-player__play" title ="{{- i18n "blocks.video.play" -}}" aria-label="{{- i18n "blocks.video.play" -}}"></button>
<img src="{{ .video.poster }}" alt="{{ .video_title }}">
</div>
{{ end }}
<div class="video-container">
<iframe data-unloaded-src="{{ .video.embed }}" title="{{ .video_title }}"></iframe>
</div>
\ No newline at end of file
{{- with site.Data.website.external_domains -}}
<meta http-equiv="-Content-Security-Policy"
<meta http-equiv="Content-Security-Policy"
content="
default-src 'self' {{ delimit . " " }}
{{ if not hugo.IsProduction }}'unsafe-inline'{{ end }}
......
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