site/layouts/shortcodes/youtube.html

4 lines
279 B
HTML

<div style="position: relative; width: 100%; padding-bottom: 56.25%; margin-bottom: 2em;">
<iframe style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" src="https://www.youtube-nocookie.com/embed/{{ .Get 0 }}?rel=0&showinfo=0" allowfullscreen></iframe>
</div>