Add YouTube and Vimeo embed shortcodes (fixes #57)
This commit is contained in:
5
templates/shortcodes/youtube.html
Normal file
5
templates/shortcodes/youtube.html
Normal file
@ -0,0 +1,5 @@
|
||||
<iframe class="youtube-embed"
|
||||
src="https://www.youtube-nocookie.com/embed/{{ id }}{% if autoplay %}?autoplay=1{% endif %}{% if autoplay and start %}&start={{ start }}{% elif start %}?start={{ start }}{% endif %}"
|
||||
title="YouTube video player"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
||||
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
|
Reference in New Issue
Block a user