{{- /* Collection List */ -}} {{- if .Params.collections | and (.Param "collection_list") -}} {{- $collectionTerms := .GetTerms "collections" -}} {{- range $collectionTerms -}} {{- $pages := (where .Pages "Params.Weight" "!=" nil) | append (where .Pages "Params.Weight" "eq" nil).ByDate -}} {{- $open := eq (index $collectionTerms 0) . -}} {{- $currentKey := 0 -}}