update og:image for quick posts

This commit is contained in:
Simon Vieille 2021-04-21 10:42:20 +02:00
parent 0d74b05cf4
commit baef732baf

View file

@ -43,7 +43,14 @@
{% set title = 'Blog - ' ~ block('meta_title') %}
{% set image = post.image ? asset(post.image) : null %}
{% 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 name = '' %}
{% endif %}