{{- $rows := union (where .Pages "Params.active" true) (where .Pages "Params.active" nil) -}}
{{- if len $rows -}}
Current Projects
{{- range $rows.ByTitle -}}
{{- if (default true .Params.show) -}}
{{- partial "project_summary" . -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- $rows := where .Pages.ByTitle "Params.active" false -}}
{{- if len $rows -}}
Legacy Projects
{{- range $rows.ByTitle -}}
{{- if (default true .Params.show) -}}
{{- partial "project_summary" . -}}
{{- end -}}
{{- end -}}
{{- end -}}