{{- define "title" -}} Projects {{- end -}} {{- define "main" -}} <div class='container'> <div class='section is-small'> <h1 class='title' title='{{.Title}}' aria-label='{{.Title}}'> Projects </h1> <div class='content'> {{- $rows := union (where .Pages "Params.active" true) (where .Pages "Params.active" nil) -}} {{- if len $rows -}} <h3 title='Current projects that are actively maintained.' aria-label='Current projects that are actively maintained.' >Current Projects</h3> <ul> {{- range $rows.ByTitle -}} {{- if (default true .Params.show) -}} {{- partial "project_summary" . -}} {{- end -}} {{- end -}} </ul> {{- end -}} {{- $rows := where .Pages.ByTitle "Params.active" false -}} {{- if len $rows -}} <h3 title='Old projects that are no longer maintained.' aria-label='Old projects that are no longer maintained.' >Legacy Projects</h3> <ul> {{- range $rows.ByTitle -}} {{- if (default true .Params.show) -}} {{- partial "project_summary" . -}} {{- end -}} {{- end -}} </ul> {{- end -}} </div><!-- content --> </div><!-- section --> </div><!-- container --> {{- end -}}