1
0
mirror of https://github.com/bitwarden/help synced 2025-12-06 00:03:30 +00:00

organization articles

This commit is contained in:
Kyle Spearrin
2017-05-23 13:09:38 -04:00
parent 17f5a1a3b8
commit 50f0b26d3f
10 changed files with 78 additions and 9 deletions

View File

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