{# Uses page variable: filter.awards #}
{# Uses data store: awards.awards #}
{% set awardsFilter = filter.awards if filter and filter.awards else "all" %}
{% set awardsFiltered = awards.awards | identifyHighlights(awardsFilter) %}

<div class="section-header">
  <h2>Awards</h2>
  {% if awardsFiltered | hasLowlights %}
    {% include "components/resume/highlight-icon.njk" %}
  {% endif %}
</div>
<ul class="awards">
  {% for award in awardsFiltered | sortHighlightsFirst %}
    {% include "components/resume/award.njk" %}
  {% endfor %}
</ul>
