Embed videos
The easiest way to embed videos in your blog is to link videos that are hosted on video portals like youtube and youku. This blog will show some simple description on how to embed youtube and youku videos. The copyright of the videos shown below belongs to the authors. If you want to use this method in your own blog, please download the source code of jekyll-embed-video and follow the instructions.
Youtube videos
To include a youtube video in your blog, you need to specify the tag youtubeId
in the page’s jekyll head info. A youtube video’s Id could be found within the its link. For example, for the video below, its link is https://www.youtube.com/watch?v=WEJguMpOr2M&t=25s. The video’s id is located between the two =
.
Youku videos
To include a youku video in your blog, you need to specify the tag youkuId
in the page’s jekyll head info. A youku video’s Id could be found within the its link. For example, for the video below, its link is https://v.youku.com/v_show/id_XMjUzNTM4OTc0OA==.html?spm=a2h0k.11417342.soresults.dtitle. The video’s id is located between the symbols id_
and ==
.