<% sample_url = with_host(@post.rating == "e" ? image_path("stubs/explicit.png") : @post.sample_url) %>
<%# Facebook Open Graph
  # Reference: https://developers.facebook.com/docs/opengraphprotocol/
%>
<%= tag :meta, :property => 'og:title', :content => html_title %>
<%= tag :meta, :property => 'og:type', :content => 'article' %>
<%= tag :meta, :property => 'og:url', :content => url_for(:controller => :post, :action => :show, :id => @post.id, :only_path => false) %>
<%= tag :meta, :property => 'og:image', :content => sample_url %>
<%= tag :meta, :property => 'og:site_name', :content => CONFIG['app_name'] %>
<%= tag :meta, :property => 'og:description', :content => @post.tags %>
<%# Reddit Thumbnail %>
<%= tag :link, :rel => 'image_src', :href => sample_url %>
<%# Twitter Card
  # Other attributes are fulfilled by Open Graph.
  # Reference: https://dev.twitter.com/docs/cards
%>
<%= tag :meta, :name => 'twitter:card', :content => 'summary_large_image' %>
<% if CONFIG['twitter_id'] %>
  <%= tag :meta, :name => 'twitter:site', :content => "@#{CONFIG['twitter_id']}" %>
<% end %>
