Skip to content

Commit

Permalink
Add tag page opengraph meta tag (#6061)
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren committed Jul 24, 2019
1 parent 4cdc80c commit a468915
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/layouts/application.html.erb
Expand Up @@ -50,6 +50,8 @@
<meta property="fb:app_id" content="644692375883090" />
<% if @node.main_image %>
<meta property="og:image" content="<%= @node.main_image.path(:default) %>" />
<% elsif @wiki && @wiki.main_image %>
<meta property="og:image" content="<%= @wiki.main_image.path(:default) %>" />
<% end %>
<p class="facebook-summary" style="display:none;">
<%= raw strip_tags(sanitize(RDiscount.new(@node.body).to_html)).truncate(100) %>
Expand Down

0 comments on commit a468915

Please sign in to comment.