{{- define "title" -}} Projects {{- end -}} {{- define "main" -}}

Projects

{{- $rows := union (where .Pages "Params.active" true) (where .Pages "Params.active" nil) -}} {{- if len $rows -}}

Current

    {{- 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

    {{- range $rows.ByTitle -}} {{- if (default true .Params.show) -}} {{- partial "project_summary" . -}} {{- end -}} {{- end -}}
{{- end -}}
{{- end -}}