{% assign hidePagination = count or data.pages.size <= 1 %} {% assign media = data.items | default: data | normalizeMedia %}