Change Cover metadata to relative path.

This commit is contained in:
Alexandre Vicenzi 2016-08-08 23:08:44 -03:00
parent 3c1123a0b8
commit 38013068b7
3 changed files with 13 additions and 3 deletions

View file

@ -16,4 +16,8 @@
{% for tag in article.tags %}
<meta property="article:tag" content="{{ tag.name }}"/>
{% endfor %}
<meta property="og:image" content="{{ article.metadata.get('cover', SITELOGO) }}">
{% if 'cover' in article.metadata %}
<meta property="og:image" content="{{ SITEURL }}/{{ article.metadata['cover'] }}">
{% else %}
<meta property="og:image" content="{{ SITELOGO }}">
{% endif %}