Skip to content

Commit

Permalink
add twitter image meta tag
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksandrTarhonskiy committed Nov 14, 2017
1 parent d917c4a commit 4488261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/posts/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<%= tag :meta, property:"og:image", content: request.protocol + request.host_with_port + image_path( @post.image.url) %>
<%= tag :meta, property: "twitter:card", content: "summary" %>
<%= tag :meta, property: "twitter:title", content: @post.title %>
<%= tag :meta, property:"twitter:card", content: request.protocol + request.host_with_port + image_path( @post.image.url) %>
<%= tag :meta, property:"twitter:image", content: request.protocol + request.host_with_port + image_path( @post.image.url) %>
<% end %>
<div class="post-photo" style='background: url("<%= @post.image.url %>");background-repeat:repeat-x;background-position: top center;background-attachment: fixed;background-size: cover;'>
</div>
Expand Down

0 comments on commit 4488261

Please sign in to comment.