update og:image for quick posts
This commit is contained in:
parent
0d74b05cf4
commit
baef732baf
|
@ -43,7 +43,14 @@
|
||||||
{% set title = 'Blog - ' ~ block('meta_title') %}
|
{% set title = 'Blog - ' ~ block('meta_title') %}
|
||||||
{% set image = post.image ? asset(post.image) : null %}
|
{% set image = post.image ? asset(post.image) : null %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set image = post.quickImage %}
|
{% set image = null %}
|
||||||
|
|
||||||
|
{% if post.quickImage %}
|
||||||
|
{% set image = post.quickImage %}
|
||||||
|
{% elseif post.image %}
|
||||||
|
{% set image = asset(post.image) %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% set title = block('meta_title') %}
|
{% set title = block('meta_title') %}
|
||||||
{% set name = '' %}
|
{% set name = '' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue