update og:image for quick posts

This commit is contained in:
Simon Vieille 2021-04-21 10:45:33 +02:00
parent baef732baf
commit 47385e9aa3

View file

@ -4,7 +4,14 @@
<div class="body">
{% if post.isQuick %}
<div class="quick">
{% set image = post.quickImage %}
{% set image = null %}
{% if post.quickImage %}
{% set image = post.quickImage %}
{% elseif post.image %}
{% set image = asset(post.image) %}
{% endif %}
{% set url = post.quickUrl %}
{% set title = post.title %}
{% set content = post.content %}
@ -15,7 +22,7 @@
<iframe src="{{ post.quickVideo }}" allowfullscreen></iframe>
</div>
</div>
{% elseif post.quickImage %}
{% elseif image %}
<div class="quick-image">
<a href="{{ url }}" target="_blank">
<img src="{{ asset('build/images/px.png') }}" data-src="{{ image }}" alt="{{ title }}" title="{{ title }}">