From 5cbde4d39c6008e6a8d250e552f62810e2ceb3dc Mon Sep 17 00:00:00 2001 From: Nick Lyons Date: Fri, 23 Feb 2024 13:25:53 -0500 Subject: [PATCH] Cleaned up conditional and prettier formatting --- .../digital.gov/layouts/shortcodes/youtube.html | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) 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;" > - + +