lostplaces-backend/django_lostplaces/lostplaces/templates/partials/image.html

18 lines
301 B
HTML
Raw Permalink Normal View History

2021-04-02 17:21:00 +02:00
{% if link_url %}
<a
class="LP-Link"
href="{{link_url}}"
>
{% endif %}
<figure class="LP-Figure">
<img
src="{{ source_url }}"
2021-04-02 22:00:21 +02:00
{% if alt_text %}
alt="{{alt_text}}"
{% else %}
alt="{{block}}"
{% endif %}
2021-04-02 17:21:00 +02:00
class="LP-Image"
/>
</figure>
{% if link_url %}</a>{% endif %}