{% assign collection = site[include.collection] %} {% if include.only and include.facet_by %} {% assign subset = collection | where: include.facet_by, include.only %} {% endif %}