{% comment %} The first section creates an array of page urls that are page urls of this collection. They then are compared to all page urls in the list below. Use group in the frontmatter to group pages. {% endcomment %} {% assign col = site.collections | where: "label", page.collection | first %}