update og:image for quick posts
This commit is contained in:
parent
baef732baf
commit
47385e9aa3
|
@ -4,7 +4,14 @@
|
|||
<div class="body">
|
||||
{% if post.isQuick %}
|
||||
<div class="quick">
|
||||
{% 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 }}">
|
||||
|
|
Loading…
Reference in a new issue