Don't show card images where they may be redundant

This commit is contained in:
Jason McBrayer 2018-12-03 08:48:01 -05:00
parent d1873e3bd8
commit 23b799c022
1 changed files with 3 additions and 2 deletions

View File

@ -59,11 +59,12 @@
<a href="{{ toot.card.url }}"> {{ toot.card.title }} </a>
</div>
</div>
{% if toot.card.image %}
{% if toot.card.image and not toot.media_attachments %}
<div class="card-image">
<figure>
<a href="{{ toot.card.url }}">
<img class="image is-max-256" alt="{{ toot.card.title }}" src="{{ toot.card.image }}">
<img class="image is-max-256" alt="{{ toot.card.title }}"
src="{{ toot.card.image }}">
</a>
</figure>
</div>