diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..18ba8d1 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Nathan Lam + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index e1097ff..a292ce6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # jekyll-embed-video -Embed YouTube, Vimeo, Twitch, Streamable, Google Drive videos/clips and more in Jekyll webpages without a plugin. If you are hosting your webpage using GitHub pages, you can't use third party plugins. Here is a method to use "includes" instead of plugins. +Embed YouTube, Vimeo, Twitch, Facebook, Instagram, Twitter, TikTok, Streamable, Google Drive videos/clips and more in Jekyll webpages without a plugin. If you are hosting your webpage using GitHub pages, you can't use third party plugins. Here is a method to use "includes" instead of plugins. See the raw text in `example.md` for a complete example. Remember to add in [video-embed.css](https://github.com/nathancy/jekyll-embed-video/blob/master/video-embed.css) for [responsive videos](#responsive-videos) that automatically resize with changing window dimensions. @@ -13,6 +13,10 @@ See the raw text in `example.md` for a complete example. Remember to add in [vid * [Embed YouTube](#embed-youtube) * [Embed Vimeo](#embed-vimeo) * [Embed Twitch](#embed-twitch) +* [Embed Facebook](#embed-facebook) +* [Embed Instagram](#embed-instagram) +* [Embed Twitter](#embed-twitter) +* [Embed TikTok](#embed-tiktok) * [Embed Streamable](#embed-streamable) * [Embed Google Drive](#embed-google-drive) * [Additional support for 20Detik, Dailymotion, Vidio, and LINE Today](#additional-support) @@ -22,7 +26,15 @@ See the raw text in `example.md` for a complete example. Remember to add in [vid ## Embed YouTube -Create a file in your `_includes` folder called `youtubePlayer.html` with this code inside: +To find the YouTube video ID, click on the desired video to embed. You will get a URL like this: + +``` +https://www.youtube.com/watch?v=lDi9uFcD7XI +``` + +The YouTube video ID would be `lDi9uFcD7XI` + +Next create a file in your `_includes` folder called `youtubePlayer.html` with this code inside: ```html
``` @@ -52,14 +64,22 @@ youtubeId: putYourIDHere ## Embed Vimeo -Create a file in your `_includes` folder called `vimeoPlayer.html` with this code inside: +To find the Vimeo video ID, click on the desired video to embed. You will get a URL like this: + +``` +https://vimeo.com/22439234 +``` + +The Vimeo video ID would be `22439234` + +Next create a file in your `_includes` folder called `vimeoPlayer.html` with this code inside: ```html @@ -372,12 +614,15 @@ Name | Type | Description ```markdown --- -title: "Full Example" youtubeId: putYourIDHere vimeoId: putYourIDHere twitchId: putYourIDHere +twitchDomain: putYourDomainHere +facebookId: putYourIDHere +instagramId: putYourIDhere +twitterId: putYourIDHere +tiktokId: putYourIDHere streamableId: putYourIDHere -mixerId: putYourIDHere driveId: putYourIDHere detikId: putYourIDHere dailymotionId: putYourIDHere @@ -417,6 +662,46 @@ Example: twitchId: GrotesqueArbitraryGullPupper {% include twitchPlayer.html id=page.twitchId domain=page.twitchDomain %} +## Embed Facebook + + + +{% include facebookPlayer.html id=page.facebookId %} + +## Embed Instagram + + + +{% include instagramPlayer.html id=page.instagramId %} + +## Embed Twitter + + + +{% include twitterPlayer.html id=page.twitterId %} + +## Embed TikTok + + + +{% include tiktokPlayer.html id=page.tiktokId %} + ## Embed Streamable + + + + + + + +++ + diff --git a/_includes/linetodayPlayer.html b/_includes/linetodayPlayer.html index 68f17b2..05fc28e 100644 --- a/_includes/linetodayPlayer.html +++ b/_includes/linetodayPlayer.html @@ -15,7 +15,7 @@ width="700" height="480" frameborder="0" - allowfullscreen="" + allowfullscreen="true" allow="autoplay; encrypted-media"> diff --git a/_includes/streamablePlayer.html b/_includes/streamablePlayer.html index 362ea3a..331c54b 100644 --- a/_includes/streamablePlayer.html +++ b/_includes/streamablePlayer.html @@ -3,8 +3,8 @@