enable OG images for all pages if available
This commit is contained in:
parent
b09dcdd4e2
commit
88c6850950
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user