Skip to content

Commit

Permalink
Merge pull request mmistakes#150 from kishore-mohan/facebook_metataf
Browse files Browse the repository at this point in the history
facebook sharing image meta tag added related mmistakes#149 issue
  • Loading branch information
jluccisano committed Feb 12, 2017
2 parents f97b9bc + 7275181 commit aa2efa6
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 aa2efa6

Please sign in to comment.