Check if page is Search, use different classes
{% set class = (currentPage == "search")? '5col' : '3col' %} 
{% for project in pageEntries %}
     {% include '_partials/search-block' with { 
        extraClasses: class
     } %} 
{% endfor %}