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

pull baseurl from context.registers

This commit is contained in:
Kyle Spearrin
2020-04-28 07:25:20 -04:00
parent 9a89685d00
commit 2fd2ef27e1

View File

@@ -3,7 +3,7 @@
class ImageTag < Liquid::Tag
def render(context)
src = @markup.strip
baseurl = Jekyll.configuration({})['baseurl']
baseurl = context.registers[:site].config['baseurl']
"<a href=\"#{baseurl}/images/#{src}\" target=\"_blank\" rel=\"lightbox\">
<img class=\"img-responsive img-thumbnail img-tag\" src=\"#{baseurl}/images/#{src}\" />
</a>"