Skip to content

Commit dda901e

Browse files
committed
facebook sharing image meta tag added related #149 issue
1 parent 3d685a1 commit dda901e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

_includes/_open-graph.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@
1616
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
1717
{% if page.excerpt %}<meta property="og:description" content="{{ page.excerpt | strip_html }}">{% endif %}
1818
<meta property="og:url" content="{{ page.url | replace:'index.html','' | prepend: site.url }}">
19-
<meta property="og:site_name" content="{{ site.title }}">
19+
<meta property="og:site_name" content="{{ site.title }}">
20+
{% if page.image.feature %}
21+
<meta property="og:image" content="{{ site.url }}/images/{{ page.image.feature }}">
22+
{% else %}
23+
<meta property="og:image" content="{% if page.image.thumb %}{{ site.url }}/images/{{ page.image.thumb }}{% else %}{{ site.url }}/images/default-thumb.png{% endif %}">
24+
{% endif %}

0 commit comments

Comments
 (0)