Easy Youtube Embed for Jekyll
A plugin for Jekyll to easily embed Youtube videos into your site. Updated to support playlist embedding.
Installation Instructions
Download the file youtube.rb
from the Github repository and place it in the _plugins
folder of your Jekyll installation.
Usage Instructions
In your Markdown post, simply include the following command:
{% youtube VIDEO_ID %}
And for playlists (new as of September 25, 2015):
{% youtube VIDEO_ID?list=PLAYLIST_ID %}
For example, {% youtube prFohBWIdQg %} will render as:
A playlist example, {% youtube yFTvbcNhEgc?list=RDyFTvbcNhEgc %} will render as:
Example
Single Video
Playlist
If you’re interested in the CSS, you can add it to your stylesheet and your videos will resize responsively based on the width of the browser’s viewport.