 
   base = "https://www.facebook.com/sharer/sharer.php"
   url = encodeURIComponent location.origin + location.pathname
-  title = encodeURIComponent @data.title
-  summary = encodeURIComponent @data.excerpt
+  title = encodeURIComponent @data.post.title
+  summary = encodeURIComponent @data.post.excerpt
   href = base + "?s=100&p[url]=" + url + "&p[title]=" + title + "&p[summary]=" + summary
 
   if img

    $('<link>', { href: author.profile.profileUrl, rel: 'author' }).appendTo 'head'

  $('<meta>', { property: 'twitter:url', content: location.origin + location.pathname }).appendTo 'head'
  $('<meta>', { property: 'twitter:title', content: @data.title }).appendTo 'head'
  $('<meta>', { property: 'twitter:description', content: @data.excerpt }).appendTo 'head'
  $('<meta>', { property: 'twitter:image:src', content: img }).appendTo 'head'

  #

Template.blogShowBody.rendered = ->

  # Hide draft posts from crawlers
  if not @data.post.published
    $('<meta>', { name: 'robots', content: 'noindex,nofollow' }).appendTo 'head'

  $('meta[property^="og:"]').remove()
