1
0
mirror of https://github.com/bitwarden/help synced 2026-02-07 03:53:17 +00:00
Files
help/_plugins/image.rb
Kyle Spearrin a39965bd7e images path
2017-05-23 08:01:58 -04:00

19 lines
431 B
Ruby

module Jekyll
module Tags
class ImageTag < Liquid::Block
def initialize(tag_name, src)
super
src.strip!
@src = src
end
def render(context)
"<a href=\"images/#{src}\" target=\"_blank\">
<img class=\"img-responsive img-thumbnail\" src=\"images/#{src}\" />
</a>"
end
end
end
end
Liquid::Template.register_tag('image', Jekyll::Tags::ImageTag)