Change Cover metadata to relative path.
This commit is contained in:
parent
3c1123a0b8
commit
38013068b7
3 changed files with 13 additions and 3 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue