Commit e3654337 authored by gijs's avatar gijs

Check image exists

parent 3315e87f
...@@ -94,6 +94,7 @@ ...@@ -94,6 +94,7 @@
<section data-container-panel-toggle="previous"><img src="{% static 'contour/images/arrow-left-white.svg' %}"></section> <section data-container-panel-toggle="previous"><img src="{% static 'contour/images/arrow-left-white.svg' %}"></section>
<section data-container-panel-toggle="next"><img src="{% static 'contour/images/arrow-right-white.svg' %}"></section> <section data-container-panel-toggle="next"><img src="{% static 'contour/images/arrow-right-white.svg' %}"></section>
{% for key, image in combined_images %} {% for key, image in combined_images %}
{% if image and image.image %}
<figure class="full" data-image-index="{{ key }}" data-panel="image-{{ key }}" > <figure class="full" data-image-index="{{ key }}" data-panel="image-{{ key }}" >
<div class="panel-toggle"> <div class="panel-toggle">
<!-- <div class="panel-toggle-handle"> <!-- <div class="panel-toggle-handle">
...@@ -109,6 +110,7 @@ ...@@ -109,6 +110,7 @@
{% if image.author %}<section class="image-credit">{{ image.author }}</section>{% endif %} {% if image.author %}<section class="image-credit">{{ image.author }}</section>{% endif %}
</figure> </figure>
{% endfor %} {% endfor %}
{% endif %}
</section> </section>
<div class="panel-toggle"> <div class="panel-toggle">
<div class="panel-toggle-handle"> <div class="panel-toggle-handle">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment