Helps you embed Youtube and Vimeo videos responsively to your Octopress since 2012.
There are 3 easy steps.
- Add
youtube.rb
andvimeo.rb
to yourplugin
folder. - Copy the content from
rve-styles.css
to your own stylesheet or just add it to your template. (or to keep everything in sass, see below) - Now you can easily embed videos using only the
id
like this:
# Vimeo example
{% vimeo 20241459 %}
# Youtube example
{% youtube QWq0bSvc31A %}
- Copy
_rve.scss
to/sass/custom
- Add
@import "custom/rve"
to/sass/screen.scss
Thanks go to Anders M. Andersen for his blogpost about responsive embeds and to Portway Point for their Jekyll Youtube Liquid Template Tag Gist