1
0
mirror of https://github.com/danbee/jekyll-video-tag synced 2025-03-04 08:59:11 +00:00
Go to file
2014-09-26 11:21:40 +01:00
lib Bump version number. 2014-09-26 11:17:42 +01:00
.gitignore Make it a gem. 2014-09-26 10:19:22 +01:00
Gemfile Make it a gem. 2014-09-26 10:19:22 +01:00
jekyll_video_tag.gemspec Add more instructions and rename the gem with hyphens. 2014-09-26 11:15:37 +01:00
LICENSE.txt Make it a gem. 2014-09-26 10:19:22 +01:00
Rakefile Make it a gem. 2014-09-26 10:19:22 +01:00
README.md Remove language from liquid blocks. 2014-09-26 11:21:40 +01:00

Jekyll Video Tag

Jekyll Video Tag is a liquid tag that adds responsive videos to your Jekyll static site.

Installation

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%; }

Usage

{% video {embed-url} width={width} height={height} %}

The embed URL is the one that is referenced by the iframe in the video embed code.

Example:

{% video //www.youtube.com/embed/7eP4pw03PCg width=560 height=315 %}

Contributing

  1. Fork it ( https://github.com/danbee/jekyll_video_tag/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request