mirror of
https://github.com/bitwarden/help
synced 2026-02-07 03:53:17 +00:00
19 lines
431 B
Ruby
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) |