plugins/tags/vimeo_tag.rb
class VimeoTag < SiteBuilder
def build
liquid_tag "vimeo", :render
end
def render(_markup, _tag)
super
html = '<div class="embed-responsive embed-responsive--16by9">'
html << '<iframe class="embed-responsive--item" src="https://player.vimeo.com/video/' + attributes[0] + '" width="100%" height="100%" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'
html << '</div>'
html
end
end