Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<div class="card">
<% if node.main_image %>
<a class="card-img-top img" style="overflow: hidden; height:10em;"
<% if @widget %>target="_blank"<% end %> href="<%= node.path %>">
<img src="<%= node.main_image.path(:default) alt="xyz" %>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment