This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins
directory.
{% youtube oHg5SJYRHA0 %}
You can also specify a height and width. If you do not, it defaults to 560 x 420.
{% youtube oHg5SJYRHA0 500 400 %}
I couldn't use this directly, because Github-Pages or whatever, but having implemented my own one in the form of
{% include youtube.liquid id="xyz" %}
I wanted to point out that you can reference the thumbnail of the video directly, and put a button on top to play the video (add?autoplay=1
so you don't have to click twice) so that your own page doesn't have to run a bunch of spurious javascript just to make a clickable image. Here's what I did:https://github.com/sh1boot/sh1boot.github.io/blob/master/_includes/clickable-embed.liquid