     href="{{ url_for('resources.images', map_identifier=topic_map['identifier'], topic_identifier='home', page=p) }}">{{
                            p }}</a>
                    </li>
                    {% endif %}
                    {% endfor %}
                    {% if page < total_pages %} <li class="page-item"><a class="page-link" aria-label="Next"
                            href="{{ url_for('resources.images', map_identifier=topic_map['identifier'], topic_identifier='home', page=page+1) }}"><i
   