#39 Partial for Images
This commit is contained in:
14
django_lostplaces/lostplaces/templates/partials/image.html
Normal file
14
django_lostplaces/lostplaces/templates/partials/image.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{% if link_url %}
|
||||
<a
|
||||
class="LP-Link"
|
||||
href="{{link_url}}"
|
||||
>
|
||||
{% endif %}
|
||||
<figure class="LP-Figure">
|
||||
<img
|
||||
src="{{ source_url }}"
|
||||
{% if alt_text %} alt="{{alt_text}}" {% endif %}
|
||||
class="LP-Image"
|
||||
/>
|
||||
</figure>
|
||||
{% if link_url %}</a>{% endif %}
|
Reference in New Issue
Block a user