alberto
alberto

Reputation: 2645

Jekyll blog hosted in github: how to insert youtube embeddings?

I would like to be able to insert youtube videos in my Jekyll site hosted in Github.

Is there a way to do it or we just have to live with that?

Upvotes: 6

Views: 6834

Answers (3)

Oscar Andersson
Oscar Andersson

Reputation: 65

It is possible to get the HTML directly from youtube.

Simply

  1. Go to the youtube video you'd like to embed.
  2. Click SHARE.
  3. Click Embed.

Upvotes: 2

elzurdo
elzurdo

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

David Jacquel
David Jacquel

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

Related Questions