{{ define "main" }} {{ .Content }} {{ $services := hugo.Data.services }} {{ $stype := slice }} {{ $smain := slice }} {{/* Sort by optional "weight" (lower = earlier), then alphabetically by name. Services without a weight go after all weighted ones. */}} {{ $sorted := slice }} {{ range $services }} {{ $key := printf "%05d-%s" (int (default 99999 .weight)) (lower .name) }} {{ $sorted = $sorted | append (merge . (dict "sort_key" $key)) }} {{ end }} {{ range $sorted }} {{ $stype = $stype | append .type }} {{ $smain = $smain | append .owner }} {{ end }} {{ $stype = $stype | uniq }} {{ $smain = $smain | uniq }}
Search
{{ if ge (len $services) 1 }}
Eligible for accounts
{{ range sort $stype }}
{{ end }}
Service owner
{{ range sort $smain }}
{{ end }}
{{ end }}
{{ range sort $sorted "sort_key" }}
{{ .name }}
{{ .description }}
Eligible for accounts: {{ delimit (apply .type "strings.FirstUpper" ".") ", " }}
Maintained by: {{ if .maintained_by_url}} {{ .maintained_by }} {{ else }} {{ .maintained_by }} {{ end }}
{{ if or (or .support_email .support_website .support_slack) .support_github }}
Extra info: {{ with .support_email }} {{ end }} {{ with .support_website }} {{ end }} {{ with .support_github }} {{ end }} {{ with .support_status }} {{ end }} {{ with .support_slack }} {{ end }} {{ with .support_impact }} {{ end }}
{{ end }}
{{ end }}
{{ end }}