youtube.html 398 B

12345678910
  1. <figure>
  2. <div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
  3. <iframe src="https://www.youtube.com/embed/{{ .Get "id" }}" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" allowfullscreen title="{{ .Get "caption" }}"></iframe>
  4. </div>
  5. <figcaption>
  6. <p>{{- .Get "caption" | markdownify -}}</p>
  7. </figcaption>
  8. </figure>