Permalink
Browse files

🐞 Add a link to the image in a link preview

  • Loading branch information...
adamdawkins committed Feb 7, 2019
1 parent 9264e4d commit c63233f083dea440ec06adef290af5ff2be62aca
Showing with 3 additions and 1 deletion.
  1. +3 βˆ’1 app/views/posts/_link_preview.html.erb
@@ -1,6 +1,8 @@
<div class="link-preview">
<% unless preview.image.nil? %>
<%= image_tag preview.image %>
<%= link_to preview.url do %>
<%= image_tag preview.image %>
<% end %>
<% end %>
<div class="link-preview__content">
<div class="link-preview__metadata">

0 comments on commit c63233f

Please sign in to comment.