{% if object_list %}
    <div class="foundry-container foundry-navbar">
        <div class="items">
        {% for link in object_list %}
            <div class="item {% ifequal link active_link%}active{% endifequal %} {% if forloop.first %}first{% endif %} {% if forloop.last %}last{% endif %}">
                <a href="{{ link.get_absolute_url }}">{{ link.title }}</a>
            </div>                       
        {% endfor %}
        </div>
    </div>
{% endif %}

{% if object_list %}
    <div class="foundry-container foundry-navbar">
        <div class="items">
            {% for link in object_list %}<div class="item {% ifequal link active_link%}active{% endifequal %} {% if forloop.first %}first{% endif %} {% if forloop.last %}last{% endif %}"><a href="{{ link.get_absolute_url }}">{{ link.title }}</a></div>{% endfor %}
        </div>
    </div>
{% endif %}

Remove whitespace at the expense of uglier templates
Remove whitespace at the expense of uglier templates
