Skip to content

Commit

Permalink
Merge pull request #4399 from galaxyproject/elf-boa
Browse files Browse the repository at this point in the history
fix figcaption complaints
  • Loading branch information
shiltemann authored Oct 10, 2023
2 parents afc517d + 31dcda1 commit 93c3c59
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 @@ -80,14 +79,13 @@ def figurify(page, site)
image = insert_image(url, alt, style, dimensions, actual_path)

%(
<a href="#{url}" rel="noopener noreferrer">
<figure id="figure-#{num_figure}" style="max-width: 90%; margin:auto;">
#{image}
<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>
</figure>
</a>
).split("\n").map(&:strip).join
end
end
Expand Down

0 comments on commit 93c3c59

Please sign in to comment.