Skip to content

Commit

Permalink
Merge pull request #150 from kishore-mohan/facebook_metataf
Browse files Browse the repository at this point in the history
facebook sharing image meta tag added related #149 issue
  • Loading branch information
mmistakes committed Jun 11, 2015
2 parents 3d685a1 + dda901e commit 09fdd3c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _includes/_open-graph.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,9 @@
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
{% if page.excerpt %}<meta property="og:description" content="{{ page.excerpt | strip_html }}">{% endif %}
<meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.url }}">
<meta property="og:site_name" content="{{ site.title }}">
<meta property="og:site_name" content="{{ site.title }}">
{% if page.image.feature %}
<meta property="og:image" content="{{ site.url }}/images/{{ page.image.feature }}">
{% else %}
<meta property="og:image" content="{% if page.image.thumb %}{{ site.url }}/images/{{ page.image.thumb }}{% else %}{{ site.url }}/images/default-thumb.png{% endif %}">
{% endif %}

0 comments on commit 09fdd3c

Please sign in to comment.