<% content_for(:page_title, "Blog | #{@post.title}")%>

<% content_for(:head) do %>
  <meta property="og:title" content="Blog | <%= @post.title %>" />
  <meta property="og:description"
    content="<%= truncate(strip_tags(format_content(@post.body)), length: 500, separator: ' ') %>" />
  <meta property="og:type" content="article" />
  <meta property="article:published_time" content="<%= @post.published_at %>" />

  <% if publisher = Blogit.configuration.facebook_app_id %>
    <meta property="article:publisher" content="<%= publisher %>" />
  <% end %>
<% end %>

<%= render partial: "blogit/posts/sidebar" %>
<%= render @post %>
<%= render "blogit/posts/post_footer", post: @post %>

<% content_for(:page_title, "Blog | #{@post.title}")%>

<% content_for(:head) do %>
  <meta property="og:title" content="Blog | <%= @post.title %>" />
  <meta property="og:description"
    content="<%= truncate(strip_tags(format_content(@post.body)), length: 500, separator: ' ') %>" />
  <meta property="og:type" content="article" />
  <meta property="article:published_time" content="<%= @post.published_at %>" />

  <% if publisher = Blogit.configuration.facebook_app_id %>
    <meta property="article:publisher" content="<%= publisher %>" />
  <% end %>

  <% if author = @post.blogger.try(:blog_author_tag) %>
    <meta property="article:author" content="<%= author %>" />
  <% end %>
<% end %>

<%= render partial: "blogit/posts/sidebar" %>
<%= render @post %>
<%= render "blogit/posts/post_footer", post: @post %>

Include a meta author tag if the blogger has an author tag attribute.
Include a meta author tag if the blogger has an author tag attribute.
