Bring over the youtube shortcode from the old theme, and add styles for the figures it creates. Add the .figure--youtube class to the <figure> element.
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			630 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			630 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
{{- $pc := .Page.Site.Config.Privacy.YouTube -}}
 | 
						|
{{- if not $pc.Disable -}}
 | 
						|
{{- $ytHost := cond $pc.PrivacyEnhanced  "www.youtube-nocookie.com" "www.youtube.com" -}}
 | 
						|
{{- $id := .Get "id" | default (.Get 0) -}}
 | 
						|
{{- $class := .Get "class" | default (.Get 1) -}}
 | 
						|
{{- $title := .Get "title" | default "YouTube Video" }}
 | 
						|
<figure class="figure--youtube{{ with $class }}  {{ . }}{{ end }}">
 | 
						|
  <div class="youtube">
 | 
						|
    <iframe src="https://{{ $ytHost }}/embed/{{ $id }}{{ with .Get "autoplay" }}{{ if eq . "true" }}?autoplay=1{{ end }}{{ end }}" allowfullscreen frameborder=0 title="{{ $title }}"></iframe>
 | 
						|
  </div>
 | 
						|
</figure>
 | 
						|
{{ end -}}
 |