diff --git a/templates/manuscript_page.html b/templates/manuscript_page.html index 8a3e2c4..b8a2361 100644 --- a/templates/manuscript_page.html +++ b/templates/manuscript_page.html @@ -58,10 +58,13 @@ <div class="row-span-1 p-4"> {% if next_page %} <a href="{% url 'manuscript_page' next_page.slug %}"> - {% for image in next_page.attached_images.all %} - <img class="w-32 h-32 object-cover" src="{{ image.thumbnail.url }}" alt="Next Page" load="lazy"> - {% endfor %} - <caption>Next Page →</caption> + {# skip the image_type "fornesics" #} + {% if image_type != "forensics" %} + {% for image in next_page.attached_images.all %} + <img class="w-32 h-32 object-cover" src="{{ image.thumbnail.url }}" alt="Next Page" load="lazy"> + {% endfor %} + <caption>Next Page →</caption> + {% endif %} </a> {% endif %}