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 %}
|
{% 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 %}
|
||||||
|
|
Loading…
Reference in a new issue