Skip to content

Commit

Permalink
move image link outside
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Oct 9, 2023
1 parent 60041f8 commit 31dcda1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions _plugins/jekyll-figurify.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def insert_image(url, alt, style, dimensions, actual_path)
#{alt}
</object>
</div>
<small><a target="_blank" href="#{url}">Open image in new tab</a></small>
)
else
%(
Expand Down Expand Up @@ -81,9 +80,8 @@ def figurify(page, site)

%(
<figure id="figure-#{num_figure}" style="max-width: 90%; margin:auto;">
<a href="#{url}" rel="noopener noreferrer">
#{image}
</a>
<a target="_blank" href="#{url}" rel="noopener noreferrer"><small>Open image in new tab</small></a>
<figcaption>
<span class="figcaption-prefix"><strong>#{prefix}#{num_figure}</strong>:</span> #{title}
</figcaption>
Expand Down

0 comments on commit 31dcda1

Please sign in to comment.