Add support for og:image value to article.

This commit is contained in:
jakimfett 2017-06-03 23:35:51 -07:00 committed by GitHub
parent f04f189ade
commit aaf913659b

View file

@ -18,6 +18,8 @@
{% endfor %} {% endfor %}
{% if 'cover' in article.metadata %} {% if 'cover' in article.metadata %}
<meta property="og:image" content="{{ SITEURL }}/{{ article.metadata['cover'] }}"> <meta property="og:image" content="{{ SITEURL }}/{{ article.metadata['cover'] }}">
{% if OG_IMAGE %}
<meta property="og:image" content="{{ OG_IMAGE }}">
{% else %} {% else %}
<meta property="og:image" content="{{ SITELOGO }}"> <meta property="og:image" content="{{ SITELOGO }}">
{% endif %} {% endif %}