Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeffreymorganio/responsive-youtube-jekyll-tag

Use Bootstrap's CSS to embed responsive YouTube videos into Jekyll static websites.
https://github.com/jeffreymorganio/responsive-youtube-jekyll-tag

jekyll youtube

Last synced: 3 days ago
JSON representation

Use Bootstrap's CSS to embed responsive YouTube videos into Jekyll static websites.

Awesome Lists containing this project

README

        

# responsive-youtube-jekyll-tag.rb

## About

This Jekyll plugin uses Twitter Bootstrap's CSS to embed responsive YouTube videos in a post or page using a Liquid tag:

`{% youtube %}`

## Dependencies

The Jekyll post or page must include the Bootstrap stylesheet.

## Usage:

1. Copy the `responsive-youtube-jekyll-tag.rb` file into your Jekyll `_plugins` folder
2. Add the `youtube` tag with a YouTube video ID where you want to embed the video

## Example

To embed the video with the link `https://www.youtube.com/watch?v=tnq2gwBhvCc` use the following tag:

`{% youtube tnq2gwBhvCc %}`

`tnq2gwBhvCc` is the YouTube video ID.

This tag will insert the following HTML and Bootstrap CSS classes into the page:

```




```