{% with breadcrumb|slice:"-1:" as last_crumb %} {% if last_crumb %} {% endif %} {% endwith %}