update og:image for quick posts
This commit is contained in:
parent
baef732baf
commit
47385e9aa3
|
@ -4,7 +4,14 @@
|
||||||
<div class="body">
|
<div class="body">
|
||||||
{% if post.isQuick %}
|
{% if post.isQuick %}
|
||||||
<div class="quick">
|
<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 url = post.quickUrl %}
|
||||||
{% set title = post.title %}
|
{% set title = post.title %}
|
||||||
{% set content = post.content %}
|
{% set content = post.content %}
|
||||||
|
@ -15,7 +22,7 @@
|
||||||
<iframe src="{{ post.quickVideo }}" allowfullscreen></iframe>
|
<iframe src="{{ post.quickVideo }}" allowfullscreen></iframe>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% elseif post.quickImage %}
|
{% elseif image %}
|
||||||
<div class="quick-image">
|
<div class="quick-image">
|
||||||
<a href="{{ url }}" target="_blank">
|
<a href="{{ url }}" target="_blank">
|
||||||
<img src="{{ asset('build/images/px.png') }}" data-src="{{ image }}" alt="{{ title }}" title="{{ title }}">
|
<img src="{{ asset('build/images/px.png') }}" data-src="{{ image }}" alt="{{ title }}" title="{{ title }}">
|
||||||
|
|
Loading…
Reference in a new issue