Based of the Youtube plugin from http://www.portwaypoint.co.uk/jekyll-youtube-liquid-template-tag-gist/
module Jekyll
class Vimeo < Liquid::Tag
@@width = 500
@@height = 281
def initialize(name, id, tokens)
super
@id = id
end
def render(context)
%(<iframe width="#{@@width}" height="#{@@height}"
src="http://player.vimeo.com/video/#{@id}"
frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>)
end
end
end
Liquid::Template.register_tag('vimeo', Jekyll::Vimeo)