How to get query of urls.Parse

Use the .Get method to get the string value

{{ $link := .Get "link"}}
{{ $url := urls.Parse $link }}
{{ $q := $url.Query }}

++ {{ $videoId := $q.Get "v" }}

{{ printf "%#v" $link }} 
{{ printf "%#v" $q.v }} 

<div class="videos-wrapper mx-auto">
       <div class="py-4">
++          <iframe class="mx-auto" width="560" height="315" src="https://www.youtube.com/embed/{{$videoId}}" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
       </div>
</div>
5 Likes