{{- /* 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 -}} {{- if lt $pages.Len 2 -}} {{- continue -}} {{- end -}}
{{ dict "Class" "fa-solid fa-layer-group" | partial "plugin/icon.html" }} {{ .LinkTitle }} {{ $pages.Len }} {{- dict "Class" "details-icon fa-solid fa-angle-right" | partial "plugin/icon.html" -}}
{{- end -}} {{- end -}}