Add support for og:image value to article.
This commit is contained in:
parent
f04f189ade
commit
aaf913659b
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,8 @@
|
|||
{% endfor %}
|
||||
{% if 'cover' in article.metadata %}
|
||||
<meta property="og:image" content="{{ SITEURL }}/{{ article.metadata['cover'] }}">
|
||||
{% if OG_IMAGE %}
|
||||
<meta property="og:image" content="{{ OG_IMAGE }}">
|
||||
{% else %}
|
||||
<meta property="og:image" content="{{ SITELOGO }}">
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue