{% assign cat = site.pages | where: "category", "cat" %} {% for c in cat %} {{ c }} {% endfor %}