add opengraph images

This commit is contained in:
2019-05-04 23:46:01 -07:00
committed by Andrew Cassidy
parent 5e65b0a488
commit 9d29026451
2 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,10 @@
{% for tag in page.tags %}
<meta name="og:article:tag" contents="{{ tag }}">
{% endfor %}
{% if page.image %}
<meta name="og:image"
contents="{{site.url}}/images/{{page.path | split: '/' | last | split: '.' | first }}/{{page.image}}">
{% endif %}
{% else %}
<meta name="og:type"
contents="website">