Rename youtube shortcode title param to description
This commit is contained in:
@@ -666,6 +666,8 @@ Parameters:
|
||||
<dd>Optional. Boolean. Automatically play the video.</dd>
|
||||
<dt><code>controls</code></dt>
|
||||
<dd>Optional. Boolean. Show video controls. Default is <code>true</code>.</dd>
|
||||
<dt><code>description</code></dt>
|
||||
<dd>Optional. String. Plain text. Screen reader content. Default is <code>YouTube video</code>.</dd>
|
||||
<dt><code>end</code></dt>
|
||||
<dd>Optional. Integer. Elapsed seconds. Stop the video here.</dd>
|
||||
<dt><code>fullscreen</code></dt>
|
||||
@@ -678,8 +680,6 @@ Parameters:
|
||||
<dd>Optional. Boolean. Mute the video.</dd>
|
||||
<dt><code>start</code></dt>
|
||||
<dd>Optional. Integer. Elapsed seconds. Start the video here.</dd>
|
||||
<dt><code>title</code></dt>
|
||||
<dd>Optional. String. Video description. Used for screen readers. Default is <code>YouTube video</code>.</dd>
|
||||
<dt><code>video</code></dt>
|
||||
<dd>Optional. Position 0. String. Video ID.</dd>
|
||||
</dl>
|
||||
|
@@ -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