Rename youtube shortcode title param to description
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
{{ $autoplay := .Get "autoplay" }}
|
||||
{{ $controls := .Get "controls" | default true }}
|
||||
{{ $description := .Get "description" | default "YouTube video" }}
|
||||
{{ $end := .Get "end" }}
|
||||
{{ $fullscreen := .Get "fullscreen" | default true }}
|
||||
{{ $list := .Get "list" }}
|
||||
{{ $loop := .Get "loop" }}
|
||||
{{ $mute := .Get "mute" }}
|
||||
{{ $start := .Get "start" }}
|
||||
{{ $title := .Get "title" | default "YouTube video" }}
|
||||
{{ $video := .Get 0 | default (.Get "video") | default "dQw4w9WgXcQ" }}
|
||||
|
||||
{{ $host := cond .Page.Site.Config.Privacy.YouTube.PrivacyEnhanced "www.youtube-nocookie.com" "www.youtube.com" }}
|
||||
@@ -58,5 +58,5 @@
|
||||
{{ end }}
|
||||
|
||||
<div class="mb-3 ratio ratio-16x9">
|
||||
<iframe {{ if $fullscreen }} allowfullscreen {{ end }} referrerpolicy="no-referrer" src="https://{{ $host | safeURL }}/{{ $path | safeURL }}?{{ $params | safeURL }}" {{ with $title }} title="{{ . }}" {{ end }}></iframe>
|
||||
<iframe {{ if $fullscreen }} allowfullscreen {{ end }} referrerpolicy="no-referrer" src="https://{{ $host | safeURL }}/{{ $path | safeURL }}?{{ $params | safeURL }}" {{ with $description }} title="{{ . }}" {{ end }}></iframe>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user