Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

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
makaroniame committed Jun 11, 2015
2 parents 1e9103e + cc1f7f7 commit 02a8115
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 02a8115

Please # to comment.