jekyll-plyr

Embed YouTube, Vimeo, and HTML5 video using Plyr.

Table of Contents

HTML5

  1. Drop plyr.html in your _includes folder
  2. Put the link to your video at the top of your .md file
---
html: https://example.com/example.mp4
---
  1. Place this code in your .md file where you want to embed your video
{% include plyr.html video=page.html %}

YouTube

  1. Drop plyrYoutube.html in your _includes folder
  2. Put the YouTube video ID at the top of your .md file
---
YouTubeID: bTqVqk7FSmY
---
  1. Place this code in your .md file where you want to embed your video
{% include plyrYoutube.html youtube=page.YouTubeID %}

Vimeo

  1. Drop plyrVimeo.html in your _includes folder
  2. Put the Vimeo video ID at the top of your .md file
---
VimeoID: 76979871
---
  1. Place this code in your .md file where you want to embed your video
{% include plyrVimeo.html vime=page.VimeoID %}