Browse Source

Added open-graph extras

master
Kenneth Skovhede 8 years ago
parent
commit
43ff035fb1
  1. 5
      _includes/open-graph.html

5
_includes/open-graph.html

@ -17,3 +17,8 @@
{% 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 }}">
{% if page.image.feature %}
<meta name="og:image" content="{{ site.url }}/images/{{ page.image.feature }}">
{% else %}
<meta name="og:image" content="{% if page.image.thumb %}{{ site.url }}/images/{{ page.image.thumb }}{% else %}{{ site.url }}/images/{{ site.logo }}{% endif %}">
{% endif %}

Loading…
Cancel
Save