Reputation: 2645
I would like to be able to insert youtube videos in my Jekyll site hosted in Github.
There is a Jekyll plugin for embedding youtube videos but it does not work in github pages.
An iframe does not work either.
<iframe width="420" src="hhtp://..." frameborder="0" allowfullscreen> </iframe>
Is there a way to do it or we just have to live with that?
Upvotes: 6
Views: 6834
Reputation: 65
It is possible to get the HTML directly from youtube.
Simply
Upvotes: 2
Reputation: 619
One minor addition to the response of @David Jacquel:
the secure https
is crucial for it to work in Github Pages (whereas the not secure http
might be enough for it to work locally).
Upvotes: 3
Reputation: 52829
Try :
<iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
Upvotes: 16