enable OG images for all pages if available

This commit is contained in:
Andrew Cassidy 2019-05-05 00:20:46 -07:00 committed by Andrew Cassidy
parent b09dcdd4e2
commit 88c6850950

View File

@ -7,6 +7,11 @@
content="{% if page.title %} {{ page.title }} {% else %} Andrew Cassidy's Website {% endif %}"/> content="{% if page.title %} {{ page.title }} {% else %} Andrew Cassidy's Website {% endif %}"/>
<meta property="og:url" content="{{site.url}}{{page.url}}"/> <meta property="og:url" content="{{site.url}}{{page.url}}"/>
{% if page.image %}
<meta property="og:image"
content="{{site.url}}/images/{{page.path | split: '/' | last | split: '.' | first }}/{{page.image}}"/>
{% endif %}
{% if page.collection == "posts" %} {% if page.collection == "posts" %}
<meta property="og:type" <meta property="og:type"
content="article"/> content="article"/>
@ -19,10 +24,6 @@
<meta property="article:tag" content="{{ tag }}"/> <meta property="article:tag" content="{{ tag }}"/>
{% endfor %} {% endfor %}
{% if page.image %}
<meta property="og:image"
content="{{site.url}}/images/{{page.path | split: '/' | last | split: '.' | first }}/{{page.image}}"/>
{% endif %}
{% if page.description %} {% if page.description %}
<meta <meta