website-zola/templates/shortcodes/youtube.html
2024-08-27 21:48:47 +02:00

9 lines
368 B
HTML

<div {% if class %}class="{{class}}"{% endif %}>
<iframe
src="https://www.youtube-nocookie.com/embed/{{id}}{% if autoplay %}?autoplay=1{% endif %}"
allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
webkitallowfullscreen
mozallowfullscreen
allowfullscreen>
</iframe>
</div>