Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#app/views/notes/_card.html.erb
<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" %>"
style="width:100%;"/>
</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.