diff --git a/themes/digital.gov/layouts/shortcodes/youtube.html b/themes/digital.gov/layouts/shortcodes/youtube.html index 57b1c8369e..f2d758d708 100644 --- a/themes/digital.gov/layouts/shortcodes/youtube.html +++ b/themes/digital.gov/layouts/shortcodes/youtube.html @@ -1,10 +1,13 @@ -{{/* Embeds a youtube player into the page +{{/* + Embeds a youtube player into the page Use the share link on the youtube.com to get the id and start time @param {string} id - the required youtube video id @params {number} [start_time] - the optional start time in seconds for the video @params {string} title - The required title of the video for screen reader accessibility + + @example {{< youtube id="Hvo7WVKvPGU" start_time"101" title="Youtube video title goes here" >}} @@ -19,13 +22,6 @@ class="video" style="position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden;" > - + +