Jekyll Video Tag is a liquid tag that adds responsive videos to your Jekyll static site.
Add this line to your application's Gemfile:
gem 'jekyll-video-tag'
And then execute:
$ bundle
Or install it yourself as:
$ gem install jekyll-video-tag
Add the gem to your Jekyll config:
gems: ['jekyll_video_tag']
Place the following snippet somewhere in your CSS:
.video-container {
position: relative;
width: 100%;
height: 0; }
.video-container iframe {
position: absolute;
width: 100%;
height: 100%; }
{% video {embed-url} width={width} height={height} %}
The embed URL is the one that is referenced by the iframe in the video embed code.
{% video //www.youtube.com/embed/7eP4pw03PCg width=560 height=315 %}
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)