Search code examples
youtubejekyllgithub-pages

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.

  • 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?


Solution

  • Try :

    <iframe width="560" height="315" src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>