1
0
mirror of https://gitlab.com/brutaldon/brutaldon.git synced 2024-09-21 15:45:56 -04:00

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

View File

@ -59,11 +59,12 @@
<a href="{{ toot.card.url }}"> {{ toot.card.title }} </a> <a href="{{ toot.card.url }}"> {{ toot.card.title }} </a>
</div> </div>
</div> </div>
{% if toot.card.image %} {% if toot.card.image and not toot.media_attachments %}
<div class="card-image"> <div class="card-image">
<figure> <figure>
<a href="{{ toot.card.url }}"> <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> </a>
</figure> </figure>
</div> </div>