Add iframe referrerpolicy params
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
{{ $playsinline := .Get "playsinline" | default true }}
|
{{ $playsinline := .Get "playsinline" | default true }}
|
||||||
{{ $portrait := .Get "portrait" }}
|
{{ $portrait := .Get "portrait" }}
|
||||||
{{ $quality := .Get "quality" }}
|
{{ $quality := .Get "quality" }}
|
||||||
|
{{ $referrerpolicy := .Get "referrerpolicy" | default "no-referrer" }}
|
||||||
{{ $speed := .Get "speed" }}
|
{{ $speed := .Get "speed" }}
|
||||||
{{ $time := .Get "time" }}
|
{{ $time := .Get "time" }}
|
||||||
{{ $texttrack := .Get "texttrack" }}
|
{{ $texttrack := .Get "texttrack" }}
|
||||||
@@ -102,5 +103,5 @@
|
|||||||
{{ $params = delimit ($params | sort | uniq) "&" }}
|
{{ $params = delimit ($params | sort | uniq) "&" }}
|
||||||
|
|
||||||
<div class="mb-3 ratio ratio-16x9">
|
<div class="mb-3 ratio ratio-16x9">
|
||||||
<iframe {{ if $fullscreen }} allowfullscreen {{ end }} referrerpolicy="no-referrer" src="https://player.vimeo.com/video/{{ $video | safeURL }}{{ with $params }}?{{ . | safeURL }}{{ end }}" {{ with $description }} title="{{ . }}" {{ end }}></iframe>
|
<iframe {{ if $fullscreen }} allowfullscreen {{ end }} {{ with $referrerpolicy }} referrerpolicy="{{ . }}" {{ end }} src="https://player.vimeo.com/video/{{ $video | safeURL }}{{ with $params }}?{{ . | safeURL }}{{ end }}" {{ with $description }} title="{{ . }}" {{ end }}></iframe>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -6,6 +6,7 @@
|
|||||||
{{ $list := .Get "list" }}
|
{{ $list := .Get "list" }}
|
||||||
{{ $loop := .Get "loop" }}
|
{{ $loop := .Get "loop" }}
|
||||||
{{ $mute := .Get "mute" }}
|
{{ $mute := .Get "mute" }}
|
||||||
|
{{ $referrerpolicy := .Get "referrerpolicy" | default "no-referrer-when-downgrade" }}
|
||||||
{{ $start := .Get "start" }}
|
{{ $start := .Get "start" }}
|
||||||
{{ $video := .Get 0 | default (.Get "video") | default "dQw4w9WgXcQ" }}
|
{{ $video := .Get 0 | default (.Get "video") | default "dQw4w9WgXcQ" }}
|
||||||
|
|
||||||
@@ -56,5 +57,5 @@
|
|||||||
{{ $params = delimit ($params | sort | uniq) "&" }}
|
{{ $params = delimit ($params | sort | uniq) "&" }}
|
||||||
|
|
||||||
<div class="mb-3 ratio ratio-16x9">
|
<div class="mb-3 ratio ratio-16x9">
|
||||||
<iframe {{ if $fullscreen }} allowfullscreen {{ end }} referrerpolicy="no-referrer" src="https://{{ $host | safeURL }}/{{ $path | safeURL }}?{{ $params | safeURL }}" {{ with $description }} title="{{ . }}" {{ end }}></iframe>
|
<iframe {{ if $fullscreen }} allowfullscreen {{ end }} {{ with $referrerpolicy }} referrerpolicy="{{ . }}" {{ end }} src="https://{{ $host | safeURL }}/{{ $path | safeURL }}?{{ $params | safeURL }}" {{ with $description }} title="{{ . }}" {{ end }}></iframe>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user